14
0
forked from pool/python-vcrpy
Files
python-vcrpy/python-vcrpy.spec
Markéta Machová 1cd0c348e3 Accepting request 1111951 from home:pgajdos:python
- 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

OBS-URL: https://build.opensuse.org/request/show/1111951
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-vcrpy?expand=0&rev=38
2023-09-18 15:12:51 +00:00

79 lines
2.4 KiB
RPMSpec

#
# spec file for package python-vcrpy
#
# Copyright (c) 2023 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: 5.1.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}
BuildRequires: %{python_module wheel}
BuildRequires: %{python_module wrapt}
BuildRequires: %{python_module yarl}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-PyYAML
Requires: python-urllib3 < 2
Requires: python-wrapt
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