Files
python-vcrpy/python-vcrpy.spec
Markéta Machová 6f4b5fb00d - Update to 8.1.1
* Fix sync requests in async contexts for HTTPX
  * CI: bump peter-evans/create-pull-request from 7 to 8
- Update to 8.1.0
  * Enable brotli decompression if available
    (via brotli, brotlipy or brotlicffi)
  * Fix aiohttp allowing both data and json arguments when one is None
  * Fix usage of io-like interface with VCR.py
  * Migrate to declarative Python package config
  * Various linting fixes
  * CI: bump actions/checkout from 5 to 6
- Update top 8.0.0
  * Drop support for Python 3.9
  * Drop support for urllib3 < 2 - fixes CVE warnings from urllib3 1.x
  * New drop_unused_requests option to remove unused interactions from
    cassettes
  * Rewrite httpx support to patch httpcore instead of httpx
  * Fix HTTPS proxy handling - proxy address no longer ends up in cassette URIs
  * Fix iscoroutinefunction deprecation warning on Python 3.14
  * Only log message if response is appended
  * Optimize urllib.parse calls
  * Fix CI for Ubuntu 24.04
  * Various CI improvements: migrate to uv, update GitHub Actions
  * Various linting and test improvements
- drop use-inspect-isocorountinefunction.patch, merged upstream

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-vcrpy?expand=0&rev=48
2026-01-12 09:26:15 +00:00

75 lines
2.2 KiB
RPMSpec

#
# spec file for package python-vcrpy
#
# Copyright (c) 2026 SUSE LLC and contributors
# 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: 8.1.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}
BuildRequires: %{python_module urllib3}
BuildRequires: %{python_module wheel}
BuildRequires: %{python_module wrapt}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-PyYAML
Requires: python-wrapt
BuildArch: noarch
%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
%autosetup -p1 -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