14
0
forked from pool/python-vcrpy
Files
python-vcrpy/python-vcrpy.spec
Dirk Mueller a87a926746 Accepting request 1144515 from home:mcalabkova:branches:devel:languages:python
- Update to 6.0.1
  * BREAKING: Fix issue with httpx support (thanks @parkerhancock) in #784.
  * BREAKING: Drop support for `boto` (vcrpy still supports boto3, but is dropping the deprecated `boto` support in this release. (thanks @jairhenrique)
  * Fix compatibility issue with Python 3.12 (thanks @hartwork)
  * Drop simplejson (fixes some compatibility issues) (thanks @jairhenrique)
  * Run CI on Python 3.12 and PyPy 3.9-3.10 (thanks @mgorny)
  * Various linting and docs improvements (thanks @jairhenrique)
  * Tornado fixes (thanks @graingert)

OBS-URL: https://build.opensuse.org/request/show/1144515
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-vcrpy?expand=0&rev=40
2024-02-07 08:50:48 +00:00

81 lines
2.4 KiB
RPMSpec

#
# spec file for package python-vcrpy
#
# Copyright (c) 2024 SUSE LLC
# 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/
#
%{?sle15_python_module_pythons}
Name: python-vcrpy
Version: 6.0.1
Release: 0
Summary: Python module to mock and replay HTTP interactions
License: MIT
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 pip}
BuildRequires: %{python_module pytest-httpbin}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
# gh#kevin1024/vcrpy#688
BuildRequires: %{python_module urllib3 < 2 if %python-base < 3.10}
BuildRequires: %{python_module wheel}
BuildRequires: %{python_module wrapt}
BuildRequires: %{python_module yarl}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-PyYAML
Requires: python-wrapt
%if 0%{python_version_nodots} < 310
Requires: python-urllib3 < 2
%endif
BuildArch: noarch
Requires: python-yarl
%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
export LANG=en_US.UTF-8
%pyproject_wheel
%install
export LANG=en_US.UTF-8
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}/vcr
%check
# Skip online tests
export LANG=en_US.UTF-8
%pytest -k "not (testing_connect or test_get_vcr_with_matcher or test_testcase_playback)"
%files %{python_files}
%license LICENSE.txt
%doc README.rst
%{python_sitelib}/vcr
%{python_sitelib}/vcrpy-%{version}.dist-info
%changelog