From 9a37894ea11d23bb34a6b39488a6c46cd4cdc4e7163f8f9df55f6a21a85f146e Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 23 May 2023 14:44:33 +0000 Subject: [PATCH] Accepting request 1088692 from home:bnavigator:branches:devel:languages:python - Restrict urllib3 < 2 -- gh#kevin1024/vcrpy#688 OBS-URL: https://build.opensuse.org/request/show/1088692 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-vcrpy?expand=0&rev=34 --- python-vcrpy.changes | 5 +++++ python-vcrpy.spec | 14 +++++++++----- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/python-vcrpy.changes b/python-vcrpy.changes index 8871b3c..caf9637 100644 --- a/python-vcrpy.changes +++ b/python-vcrpy.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +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 diff --git a/python-vcrpy.spec b/python-vcrpy.spec index bdef7e9..1ebb60f 100644 --- a/python-vcrpy.spec +++ b/python-vcrpy.spec @@ -17,8 +17,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%define skip_python2 1 Name: python-vcrpy Version: 4.2.1 Release: 0 @@ -27,10 +25,14 @@ 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 six >= 1.5} +# gh#kevin1024/vcrpy#688 +BuildRequires: %{python_module urllib3 < 2} +BuildRequires: %{python_module wheel} BuildRequires: %{python_module wrapt} BuildRequires: %{python_module yarl} BuildRequires: fdupes @@ -38,6 +40,7 @@ BuildRequires: python-rpm-macros Requires: python-PyYAML Requires: python-six >= 1.5 Requires: python-wrapt +Requires: python-urllib3 < 2 BuildArch: noarch Requires: python-yarl %python_subpackages @@ -55,11 +58,11 @@ rm -r tests/integration %build export LANG=en_US.UTF-8 -%python_build +%pyproject_wheel %install export LANG=en_US.UTF-8 -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib}/vcr %check @@ -71,6 +74,7 @@ export LANG=en_US.UTF-8 %files %{python_files} %license LICENSE.txt %doc README.rst -%{python_sitelib}/* +%{python_sitelib}/vcr +%{python_sitelib}/vcrpy-%{version}.dist-info %changelog