From b1cc57879cab9d5bdc604eee7511c8c48e7c69a921987e269d9291d79a44ca8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 3 May 2024 20:13:29 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main python-betamax revision bb5926e658cd8f0077ad6d1ed12a9f20 --- .gitattributes | 23 ++++++++++++++ betamax-0.8.1.tar.gz | 3 ++ python-betamax.changes | 68 ++++++++++++++++++++++++++++++++++++++++++ python-betamax.spec | 55 ++++++++++++++++++++++++++++++++++ 4 files changed, 149 insertions(+) create mode 100644 .gitattributes create mode 100644 betamax-0.8.1.tar.gz create mode 100644 python-betamax.changes create mode 100644 python-betamax.spec 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/betamax-0.8.1.tar.gz b/betamax-0.8.1.tar.gz new file mode 100644 index 0000000..80ab5d6 --- /dev/null +++ b/betamax-0.8.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5bf004ceffccae881213fb722f34517166b84a34919b92ffc14d1dbd050b71c2 +size 77526 diff --git a/python-betamax.changes b/python-betamax.changes new file mode 100644 index 0000000..06db628 --- /dev/null +++ b/python-betamax.changes @@ -0,0 +1,68 @@ +------------------------------------------------------------------- +Fri Apr 21 12:22:39 UTC 2023 - Dirk Müller + +- add sle15_python_module_pythons (jsc#PED-68) + +------------------------------------------------------------------- +Thu Apr 13 22:40:16 UTC 2023 - Matej Cepl + +- Make calling of %{sle15modernpython} optional. + +------------------------------------------------------------------- +Thu Dec 13 09:23:17 UTC 2018 - Thomas Bechtold + +- update to 0.8.1: + - Previous attempts to sanitize cassette names were incomplete. + Sanitization has become more thorough which could have some affects on + existing cassette files. **This may cause new cassettes to be generated.** + - Fix bug where there may be an exception raised in a + ``betamax.exceptions.BetamaxError`` repr. +- Use %license macro + +------------------------------------------------------------------- +Tue May 16 15:57:27 UTC 2017 - dmueller@suse.com + +- convert to singlespec packaging + +------------------------------------------------------------------- +Tue Nov 15 10:34:38 UTC 2016 - dmueller@suse.com + +- update to 0.8.0: + - Add ``betamax_parametrized_recorder`` and ``betamax_parametrized_session`` + to our list of pytest fixtures so that users will have parametrized cassette + names when writing parametrized tests with our fixtures. (I wonder if I can + mention parametrization a bunch more times so I can say parametrize a lot in + this bullet note.) + - Add ``ValidationError`` and a set of subclasses for each possible validation + error. + - Raise ``InvalidOption`` on unknown cassette options rather than silently + ignoring extra options. + - Raise a subclass of ``ValidationError`` when a particular cassette option is + invalid, rather than silently ignoring the validation failure. + - Fix bug with query string matcher where query-strings without values (e.g., + ``?foo&bar`` as opposed to ``?foo=1&bar=2``) were treated as if there were + no query string. + - Fix issue #108 by effectively copying the items in the match_requests_on + list into the match_options set on a Cassette instance + +------------------------------------------------------------------- +Tue Jun 7 07:52:18 UTC 2016 - tbechtold@suse.com + +- update to 0.7.0: + - Add before_record and before_playback hooks + - Allow per-cassette placeholders to be merged and override global placeholders + - Fix bug where the QueryMatcher failed matching on high Unicode points + - Add betamax_recorder pytest fixture + - Change default behaviour to allow duplicate interactions to be recorded + in single cassette + - Add allow_playback_repeats to allow an interaction to be used more than once + from a single cassette + - Always return a new Response object from an Interaction to allow for a + streaming response to be usable multiple times + - Remove CI support for Pythons 2.6 and 3.2 + +------------------------------------------------------------------- +Thu Feb 11 14:44:26 UTC 2016 - tbechtold@suse.com + +- Initial packaging (version 0.5.1) + diff --git a/python-betamax.spec b/python-betamax.spec new file mode 100644 index 0000000..47720fd --- /dev/null +++ b/python-betamax.spec @@ -0,0 +1,55 @@ +# +# spec file for package python-betamax +# +# Copyright (c) 2023 SUSE LLC +# +# 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-%{**}} +%{?sle15_python_module_pythons} +Name: python-betamax +Version: 0.8.1 +Release: 0 +Summary: A VCR imitation for python-requests +License: Apache-2.0 +Group: Development/Languages/Python +URL: https://github.com/sigmavirus24/betamax +Source: https://pypi.io/packages/source/b/betamax/betamax-%{version}.tar.gz +BuildRequires: %{python_module setuptools} +BuildRequires: python-rpm-macros +Requires: python-requests >= 2.0 +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildArch: noarch +%python_subpackages + +%description +Betamax is a VCR_ imitation for requests. This will make mocking out requests +much easier. + +%prep +%setup -q -n betamax-%{version} + +%build +%python_build + +%install +%python_install + +%files %{python_files} +%defattr(-,root,root,-) +%doc AUTHORS.rst README.rst +%license LICENSE +%{python_sitelib}/* + +%changelog