Accepting request 1217932 from devel:languages:python
- Switch to pyproject macros. OBS-URL: https://build.opensuse.org/request/show/1217932 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-requests?expand=0&rev=85
This commit is contained in:
commit
4f1a69adae
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
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>
|
Thu Oct 17 06:30:14 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
@ -35,7 +35,9 @@ Source: https://files.pythonhosted.org/packages/source/r/requests/reques
|
|||||||
# PATCH-FIX-UPSTREAM gh#psf/requests#6731
|
# PATCH-FIX-UPSTREAM gh#psf/requests#6731
|
||||||
Patch0: inject-default-ca-bundles.patch
|
Patch0: inject-default-ca-bundles.patch
|
||||||
BuildRequires: %{python_module base >= 3.7}
|
BuildRequires: %{python_module base >= 3.7}
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: ca-certificates
|
Requires: ca-certificates
|
||||||
@ -95,11 +97,11 @@ Features of Requests:
|
|||||||
sed -i "s#\(httpbin.*\), 'never'#\1#" tests/test_requests.py
|
sed -i "s#\(httpbin.*\), 'never'#\1#" tests/test_requests.py
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%if !%{with test}
|
%if !%{with test}
|
||||||
%python_install
|
%pyproject_install
|
||||||
# check that urllib3 is not installed
|
# check that urllib3 is not installed
|
||||||
test ! -e %{buildroot}%{python3_sitelib}/requests/packages/urllib3
|
test ! -e %{buildroot}%{python3_sitelib}/requests/packages/urllib3
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
@ -120,7 +122,7 @@ touch Pipfile
|
|||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc HISTORY.md README.md
|
%doc HISTORY.md README.md
|
||||||
%{python_sitelib}/requests
|
%{python_sitelib}/requests
|
||||||
%{python_sitelib}/requests-%{version}*.egg-info
|
%{python_sitelib}/requests-%{version}.dist-info
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user