2015-02-09 15:55:41 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-vcrpy
|
|
|
|
#
|
2020-02-08 11:01:08 +00:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2015-02-09 15:55:41 +00:00
|
|
|
# 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.
|
|
|
|
|
2019-04-17 12:23:43 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2015-02-09 15:55:41 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2017-07-17 05:03:38 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2015-02-09 15:55:41 +00:00
|
|
|
Name: python-vcrpy
|
2020-02-08 11:01:08 +00:00
|
|
|
Version: 4.0.2
|
2015-02-09 15:55:41 +00:00
|
|
|
Release: 0
|
2018-10-24 18:01:16 +00:00
|
|
|
Summary: Python module to mock and replay HTTP interactions
|
2015-02-09 15:55:41 +00:00
|
|
|
License: MIT
|
|
|
|
Group: Development/Languages/Python
|
2018-10-24 13:32:46 +00:00
|
|
|
URL: https://github.com/kevin1024/vcrpy
|
2017-07-17 05:03:38 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/v/vcrpy/vcrpy-%{version}.tar.gz
|
2020-02-24 09:27:05 +00:00
|
|
|
# Enable Python 2 again. Drop as soon as Python 2 will be dropped from Factory.
|
|
|
|
Patch0: 0001-Revert-v4.0.x-Remove-legacy-python-and-add-python3.8.patch
|
2017-07-17 05:03:38 +00:00
|
|
|
BuildRequires: %{python_module PyYAML}
|
|
|
|
BuildRequires: %{python_module pytest-httpbin}
|
|
|
|
BuildRequires: %{python_module pytest}
|
2018-10-24 13:32:46 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2017-07-17 05:03:38 +00:00
|
|
|
BuildRequires: %{python_module six >= 1.5}
|
|
|
|
BuildRequires: %{python_module wrapt}
|
2018-10-24 13:32:46 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2020-02-24 09:27:05 +00:00
|
|
|
BuildRequires: python2-contextlib2
|
|
|
|
BuildRequires: python2-mock
|
|
|
|
BuildRequires: python3-yarl
|
2015-02-09 15:55:41 +00:00
|
|
|
Requires: python-PyYAML
|
2017-07-17 05:03:38 +00:00
|
|
|
Requires: python-six >= 1.5
|
2015-02-09 15:55:41 +00:00
|
|
|
Requires: python-wrapt
|
2020-02-08 11:01:08 +00:00
|
|
|
Requires: python-yarl
|
2018-10-24 13:32:46 +00:00
|
|
|
BuildArch: noarch
|
2020-02-24 09:27:05 +00:00
|
|
|
%ifpython2
|
|
|
|
Requires: python2-contextlib2
|
|
|
|
Requires: python2-mock
|
|
|
|
%endif
|
|
|
|
%ifpython3
|
|
|
|
Requires: python3-yarl
|
|
|
|
%endif
|
2017-07-17 05:03:38 +00:00
|
|
|
%python_subpackages
|
|
|
|
|
2015-02-09 15:55:41 +00:00
|
|
|
%description
|
2018-10-24 18:01:16 +00:00
|
|
|
This module records a test suite's HTTP interactions and replays them during future
|
|
|
|
test runs for deterministic tests.
|
2016-01-27 13:57:19 +00:00
|
|
|
|
|
|
|
This is a Python version of Ruby's VCR library.
|
2015-02-09 15:55:41 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n vcrpy-%{version}
|
2020-02-24 09:27:05 +00:00
|
|
|
%patch0 -p1
|
2019-09-16 10:53:19 +00:00
|
|
|
# online integration tests
|
|
|
|
rm -r tests/integration
|
2015-02-09 15:55:41 +00:00
|
|
|
|
|
|
|
%build
|
2017-07-17 05:03:38 +00:00
|
|
|
%python_build
|
2015-02-09 15:55:41 +00:00
|
|
|
|
|
|
|
%install
|
2017-07-17 05:03:38 +00:00
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}/vcr
|
2015-02-09 15:55:41 +00:00
|
|
|
|
|
|
|
%check
|
2017-07-17 05:03:38 +00:00
|
|
|
# Skip TestVCRConnection.testing_connect. Attempts
|
|
|
|
# a real connection.
|
2019-09-16 10:53:19 +00:00
|
|
|
%pytest -k "not testing_connect"
|
2015-02-09 15:55:41 +00:00
|
|
|
|
2017-07-17 05:03:38 +00:00
|
|
|
%files %{python_files}
|
2018-10-24 13:32:46 +00:00
|
|
|
%license LICENSE.txt
|
|
|
|
%doc README.rst
|
2017-07-17 05:03:38 +00:00
|
|
|
%{python_sitelib}/*
|
2015-02-09 15:55:41 +00:00
|
|
|
|
|
|
|
%changelog
|