14
0
forked from pool/python-vcrpy
Files
python-vcrpy/python-vcrpy.spec
Tomáš Chvátal de2b6ee921 - Update to 2.1.0:
* Add a rewind method to reset a cassette (thanks @khamidou)
  * New error message with more details on why the cassette failed to play a request (thanks @arthurHamon2, @neozenith)
  * Handle connect tunnel URI (thanks @jeking3)
  * Drop support to python 3.4
  * Add deprecation warning on python 2.7, next major release will drop python 2.7 support
- Drop merged patch python-vcrpy-fix-tunnel-uri-generation.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-vcrpy?expand=0&rev=16
2019-09-16 10:53:19 +00:00

82 lines
2.4 KiB
RPMSpec

#
# spec file for package python-vcrpy
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2015 LISA GmbH, Bingen, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-vcrpy
Version: 2.1.0
Release: 0
Summary: Python module to mock and replay HTTP interactions
License: MIT
Group: Development/Languages/Python
URL: https://github.com/kevin1024/vcrpy
Source: https://files.pythonhosted.org/packages/source/v/vcrpy/vcrpy-%{version}.tar.gz
BuildRequires: %{python_module PyYAML}
BuildRequires: %{python_module pytest-httpbin}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six >= 1.5}
BuildRequires: %{python_module wrapt}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: python2-contextlib2
BuildRequires: python2-mock
BuildRequires: python3-yarl
Requires: python-PyYAML
Requires: python-six >= 1.5
Requires: python-wrapt
BuildArch: noarch
%ifpython2
Requires: python2-contextlib2
Requires: python2-mock
%endif
%ifpython3
Requires: python3-yarl
%endif
%python_subpackages
%description
This module records a test suite's HTTP interactions and replays them during future
test runs for deterministic tests.
This is a Python version of Ruby's VCR library.
%prep
%setup -q -n vcrpy-%{version}
# online integration tests
rm -r tests/integration
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}/vcr
%check
# Skip TestVCRConnection.testing_connect. Attempts
# a real connection.
%pytest -k "not testing_connect"
%files %{python_files}
%license LICENSE.txt
%doc README.rst
%{python_sitelib}/*
%changelog