Sync from SUSE:SLFO:Main python-betamax revision bb5926e658cd8f0077ad6d1ed12a9f20

This commit is contained in:
Adrian Schröter 2024-05-03 20:13:29 +02:00
commit b1cc57879c
4 changed files with 149 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

BIN
betamax-0.8.1.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

68
python-betamax.changes Normal file
View File

@ -0,0 +1,68 @@
-------------------------------------------------------------------
Fri Apr 21 12:22:39 UTC 2023 - Dirk Müller <dmueller@suse.com>
- add sle15_python_module_pythons (jsc#PED-68)
-------------------------------------------------------------------
Thu Apr 13 22:40:16 UTC 2023 - Matej Cepl <mcepl@suse.com>
- Make calling of %{sle15modernpython} optional.
-------------------------------------------------------------------
Thu Dec 13 09:23:17 UTC 2018 - Thomas Bechtold <tbechtold@suse.com>
- 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)

55
python-betamax.spec Normal file
View File

@ -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