From a7e1cbe73fad5c3a41647e1c8a5a2004b194eb5988bf99718a1e71a47e30014f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 7 Feb 2025 18:38:53 +0100 Subject: [PATCH] Sync from SUSE:SLFO:Main python-vcrpy revision 8503441bf33085dba6498d6b8a4d5733 --- .gitattributes | 23 ++++ python-vcrpy.changes | 302 +++++++++++++++++++++++++++++++++++++++++++ python-vcrpy.spec | 80 ++++++++++++ vcrpy-7.0.0.tar.gz | 3 + 4 files changed, 408 insertions(+) create mode 100644 .gitattributes create mode 100644 python-vcrpy.changes create mode 100644 python-vcrpy.spec create mode 100644 vcrpy-7.0.0.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/python-vcrpy.changes b/python-vcrpy.changes new file mode 100644 index 0000000..1e4a157 --- /dev/null +++ b/python-vcrpy.changes @@ -0,0 +1,302 @@ +------------------------------------------------------------------- +Mon Jan 6 10:53:19 UTC 2025 - John Paul Adrian Glaubitz + +- Update to 7.0.0 + * Drop support for python 3.8 (major version bump) - thanks @jairhenrique + * Various linting and test fixes - thanks @jairhenrique + * Bugfix for urllib2>=2.3.0 - missing version_string (#888) + * Bugfix for asyncio.run - thanks @alekeik1 + +------------------------------------------------------------------- +Tue Oct 29 12:01:26 UTC 2024 - John Paul Adrian Glaubitz + +- Update to 6.0.2 + * Ensure body is consumed only once (#846) - thanks @sathieu + * Permit urllib3 2.x for non-PyPy Python >=3.10 + * Fix typos in test commands - thanks @chuckwondo + * Several test and workflow improvements - thanks @hartwork and @graingert + +------------------------------------------------------------------- +Tue Feb 6 09:30:05 UTC 2024 - Markéta Machová + +- 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) + +------------------------------------------------------------------- +Mon Sep 18 11:25:25 UTC 2023 - pgajdos@suse.com + +- version update to 5.1.0 + * Use ruff for linting (instead of current flake8/isort/pyflakes) - thanks @jairhenrique + * Enable rule B (flake8-bugbear) on ruff - thanks @jairhenrique + * Configure read the docs V2 - thanks @jairhenrique + * Fix typo in docs - thanks @quasimik + * Make json.loads of Python >=3.6 decode bytes by itself - thanks @hartwork + * Fix body matcher for chunked requests (fixes #734) - thanks @hartwork + * Fix query param filter for aiohttp (fixes #517) - thanks @hartwork and @salomvary + * Remove unnecessary dependency on six. - thanks @charettes + * build(deps): update sphinx requirement from <7 to <8 - thanks @jairhenrique + * Add action to validate docs - thanks @jairhenrique + * Add editorconfig file - thanks @jairhenrique + * Drop iscoroutinefunction fallback function for unsupported python thanks @jairhenrique +- for changelog for older releases refer to https://github.com/kevin1024/vcrpy/releases +- six is not required + +------------------------------------------------------------------- +Thu Jun 15 11:58:24 UTC 2023 - Andreas Schneider + +- Use sle15_python_module_pythons + +------------------------------------------------------------------- +Tue May 23 14:34:54 UTC 2023 - Ben Greiner + +- Restrict urllib3 < 2 -- gh#kevin1024/vcrpy#688 + +------------------------------------------------------------------- +Tue Oct 11 16:48:12 UTC 2022 - Yogalakshmi Arunachalam + +- Update to version 4.2.1 + * Fix a bug where the first request in a redirect chain was not being recorded with aiohttp + * Various typos and small fixes, thanks @jairhenrique, @timgates42 + +------------------------------------------------------------------- +Thu Aug 26 12:15:11 UTC 2021 - John Paul Adrian Glaubitz + +- Update to 4.1.1: + * Fix HTTPX support for versions greater than 0.15 (thanks @jairhenrique) + * Include a trailing newline on json cassettes (thanks @AaronRobson) + +------------------------------------------------------------------- +Fri Aug 28 07:54:23 UTC 2020 - Steve Kowalik + +- Update to 4.1.0: + * Add support for httpx!! (thanks @herdigiorgi) + * Add the new allow_playback_repeats option (thanks @tysonholub) + * Several aiohttp improvements (cookie support, multiple headers with same + key) (Thanks @pauloromeira) + * Use enums for record modes (thanks @aaronbannin) + * Bugfix: Do not redirect on 304 in aiohttp (Thanks @royjs) + * Bugfix: Fix test suite by switching to mockbin (thanks @jairhenrique) + +------------------------------------------------------------------- +Mon Apr 20 07:29:44 UTC 2020 - Tomáš Chvátal + +- Remove patch 0001-Revert-v4.0.x-Remove-legacy-python-and-add-python3.8.patch + as we dropped py2 integration support on Tumbleweed + +------------------------------------------------------------------- +Mon Feb 24 09:14:21 UTC 2020 - Marketa Calabkova + +- Added patch 0001-Revert-v4.0.x-Remove-legacy-python-and-add-python3.8.patch + * Enable python2 again since it breaks many packages +- Fix locale on Leap + +------------------------------------------------------------------- +Fri Feb 7 14:58:03 UTC 2020 - Marketa Calabkova + +- update to version 4.0.2 + * Remove Python2 support + * Add Python 3.8 TravisCI support + * Correct mock imports + +------------------------------------------------------------------- +Sun Nov 3 14:00:28 UTC 2019 - Martin Hauke + +- Update to version 2.1.1 + * Format code with black + * Improve documentation about custom matchers + * Fix exception when body is empty + * Fix yarl and python3.5 version issue + * Fix header matcher for boto3 + +------------------------------------------------------------------- +Mon Sep 16 10:48:31 UTC 2019 - Tomáš Chvátal + +- 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 + +------------------------------------------------------------------- +Wed Apr 17 14:09:32 CEST 2019 - Matej Cepl + +- Test suite just doesn't work. gh#kevin1024/vcrpy#427 + +------------------------------------------------------------------- +Sat Dec 29 15:56:43 UTC 2018 - mardnh@gmx.de + +- Add patch: + * python-vcrpy-fix-tunnel-uri-generation.patch + Needed for python-pyvmomi + +------------------------------------------------------------------- +Wed Oct 24 15:24:59 UTC 2018 - Jan Engelhardt + +- Use noun phrase in summary and adjust descriptions. + +------------------------------------------------------------------- +Wed Oct 24 13:31:40 UTC 2018 - Tomáš Chvátal + +- Version update to 2.0.1: + * Support python 3.7 (fix httplib2 and urllib2, thanks @felixonmars) + +------------------------------------------------------------------- +Thu Jul 13 22:09:12 UTC 2017 - sean.marlow@suse.com + +- Move vcrpy to single spec. + +------------------------------------------------------------------- +Thu Jun 8 19:05:41 UTC 2017 - sean.marlow@suse.com + +- Changes from version 1.11.1: + * Bugfixes + * Add support for latest requests and urllib3 releases + +- Changes from version 1.11.0: + * Allow injection of persistence methods + * Bugfixes + * Support python 3.6 + CI tests + * Support pytest-asyncio coroutines + +- Changes from version 1.10.5: + * Added a fix to httplib2 + * Fix an issue with aiohttp + * Add missing requirement yarl + * Remove duplicate mock triple + +- Changes from version 1.10.3: + * Aiohttp bugfix + * Empty cassette body bugfix + +------------------------------------------------------------------- +Sun Sep 18 12:23:44 UTC 2016 - mardnh@gmx.de + +- Fix Source-URL +- Update to version 1.10.2: + * only version bump - no code changes + +- Changes from version 1.10.1 + * Move vcr.stubs.aiohttp_stub to a package + * Merge pull request #271 from lamenezes/fix-py2-setup + * Exclude aiohttp from python < 3 setup + +- Changes from version 1.10.0: + * remove py26-flakes test + * fix flake8: ignore yield from syntax errors + * fix tox's flakes tests + * fix test_aiohttp + * fix tests + * remove async/await from aiohttp_stubs to support python 3.4 + * add aiohttp to tests config + * add integration tests for aiohttp + * fix aiohttp_stubs.vcr_request error message + * fix aiohttp response closing + * remove CIMultiDictProxy from aiohttp_stubs.vcr_request + * add support for aiohttp + * Merge pull request #265 from adamchainz/readthedocs.io + * fix flaky test + * Convert readthedocs links for their .org -> .io migration for hosted projects + +- Changes from version 1.9.0: + * unzip bodies before comparing. Fixes #261 + * Merge pull request #247 from dedsm/boto3_support + * Running boto3 tests in travis + * Fixing pep8 errors in boto tests + * boto3 integration tests + * Adding support for boto3 + * fix tests in stubs, requests ssl verification and httpbin+flask + * Removed requests usage from test + * Renamed inside2 to inside + * Fix flake8 issue + * Updated comments + * Added a note on the deepcopy + * Added regression test + * Move deepcopy higher to not mutate original headers + +- Changes from version 1.8.0: + * missed a httpbin call + * Merge pull request #253 from jayvdb/no-pytest-localserver + * Remove pytest-localserver from test dependencies + * pep8 + * Fix for Serialization errors with JSON adapter + * Use pytest-httpbin + * Add Python 3.5 and PyPy 3 to Travis + * Fix/ignore some flake errors + * Add test to make sure we can post chunked binary data + * Avoid concatenating bytes with strings + * Fix travis check for flakes + * allow filtering by response + * Exclude __pycache__ dirs & compiled files in sdist + * Fix Tornado support behavior for Tornado 3. + * Use tox-travis + * support python 3.4 + * tests / docs for decode_compressed_response + * add decode_compressed_response option and filter + * Fix pyflakes and pep8 errors + * Use tox for Travis-CI + * Fix typo + * Add documentation for new features of filter_headers, filter_query_parameters and filter_post_data_parameters + * Update VCR params to use new filters. + * Add replace_post_data_parameters() + * Add replace_query_parameters() + * Add replace_headers() + * Add note and link for vcrpy-unittest. + * Blindly add modules to be documented + * Add PyPI badge. + * Rename waffle badge from 'ready' to 'waffle' which seems clearer. + * Split README.rst into appropriate docs sections + * Use sphinx_rtd_theme building docs locally + * Switch to default RtD theme + * Lint cleanup + * Fallback to importing from urllib3 + +------------------------------------------------------------------- +Tue Jan 26 19:37:11 UTC 2016 - bear454@opensuse.org + +- Update to version 1.7.4: + +1.7.4 [#217] Make use_cassette decorated functions actually return a value (thanks @bcen). [#199] Fix path transfromation defaults. Better headers dictionary management. +1.7.3 [#188] additional_matchers kwarg on use_cassette. [#191] Actually support passing multiple before_record_request functions (thanks @agriffis). +1.7.2 [#186] Get effective_url in tornado (thanks @mvschaik), [#187] Set request_time on Response object in tornado (thanks @abhinav). +1.7.1 [#183] Patch fetch_impl instead of the entire HTTPClient class for Tornado (thanks @abhinav). +1.7.0 [#177] Properly support coroutine/generator decoration. [#178] Support distribute (thanks @graingert). [#163] Make compatibility between python2 and python3 recorded cassettes more robust (thanks @gward). +1.6.1 [#169] Support conditional requirements in old versions of pip, Fix RST parse errors generated by pandoc, [Tornado] Fix unsupported features exception not being raised, [#166] content-aware body matcher. +1.6.0 [#120] Tornado support (thanks @abhinav), [#147] packaging fixes (thanks @graingert), [#158] allow filtering post params in requests (thanks @MrJohz), [#140] add xmlrpclib support (thanks @Diaoul). +1.5.2 Fix crash when cassette path contains cassette library directory (thanks @gazpachoking). +1.5.0 Automatic cassette naming and ‘application/json’ post data filtering (thanks @marco-santamaria). +1.4.2 Fix a bug caused by requests 2.7 and chunked transfer encoding +1.4.1 Include README, tests, LICENSE in package. Thanks @ralphbean. +1.4.0 Filter post data parameters (thanks @eadmundo), support for posting files through requests, inject_cassette kwarg to access cassette from use_cassette decorated function, with_current_defaults actually works (thanks @samstav). +1.3.0 Fix/add support for urllib3 (thanks @aisch), fix default port for https (thanks @abhinav). + +------------------------------------------------------------------- +Wed Feb 4 09:22:15 UTC 2015 - hpj@urpla.net + +- Update to version 1.2.0: + * Add custom_patches argument to VCR/Cassette objects to allow + users to stub custom classes when cassettes become active. +- Changes from version 2.1.4: + * Add force reset around calls to actual connection from stubs, + to ensure compatibility with the version of httplib/urlib2 in + python 2.7.9. +- Changes from version 1.1.3: + * Fix python3 headers field + * Fix boto test + * Fix new_episodes record mode + * Fix Windows connectionpool + * Stub bug + * Add support for requests 2.5 + +------------------------------------------------------------------- +Tue Nov 4 16:52:20 UTC 2014 - hpj@urpla.net + +- version 1.1.2: initial build + diff --git a/python-vcrpy.spec b/python-vcrpy.spec new file mode 100644 index 0000000..b277dc5 --- /dev/null +++ b/python-vcrpy.spec @@ -0,0 +1,80 @@ +# +# spec file for package python-vcrpy +# +# Copyright (c) 2025 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: 7.0.0 +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 diff --git a/vcrpy-7.0.0.tar.gz b/vcrpy-7.0.0.tar.gz new file mode 100644 index 0000000..2d1abbd --- /dev/null +++ b/vcrpy-7.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:176391ad0425edde1680c5b20738ea3dc7fb942520a48d2993448050986b3a50 +size 85502