Sync from SUSE:SLFO:1.1 python-requests revision 3c1e84ada941affac10d998f218926ed

This commit is contained in:
Adrian Schröter 2024-12-19 14:45:19 +01:00
parent aef936d7a7
commit bf1b546e9b
2 changed files with 3 additions and 10 deletions

View File

@ -1,8 +1,3 @@
-------------------------------------------------------------------
Thu Oct 24 07:48:08 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
-------------------------------------------------------------------
Thu Oct 17 06:30:14 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>

View File

@ -35,9 +35,7 @@ Source: https://files.pythonhosted.org/packages/source/r/requests/reques
# PATCH-FIX-UPSTREAM gh#psf/requests#6731
Patch0: inject-default-ca-bundles.patch
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: ca-certificates
@ -97,11 +95,11 @@ Features of Requests:
sed -i "s#\(httpbin.*\), 'never'#\1#" tests/test_requests.py
%build
%pyproject_wheel
%python_build
%install
%if !%{with test}
%pyproject_install
%python_install
# check that urllib3 is not installed
test ! -e %{buildroot}%{python3_sitelib}/requests/packages/urllib3
%python_expand %fdupes %{buildroot}%{$python_sitelib}
@ -122,7 +120,7 @@ touch Pipfile
%license LICENSE
%doc HISTORY.md README.md
%{python_sitelib}/requests
%{python_sitelib}/requests-%{version}.dist-info
%{python_sitelib}/requests-%{version}*.egg-info
%endif
%changelog