From cf891452326ab3b35377e4c48b57c338afad0805 Mon Sep 17 00:00:00 2001 From: Miro Hrončok Date: Jul 10 2020 17:55:52 +0000 Subject: [PATCH 1/2] Add requests[security] and requests[socks] subpackages https://fedoraproject.org/wiki/Changes/PythonExtras --- diff --git a/python-requests.spec b/python-requests.spec index 0453a01..344d8ae 100644 --- a/python-requests.spec +++ b/python-requests.spec @@ -10,7 +10,7 @@ Name: python-requests Version: 2.23.0 -Release: 4%{?dist} +Release: 5%{?dist} Summary: HTTP library, written in Python, for human beings License: ASL 2.0 @@ -70,6 +70,8 @@ cumbersome. Python’s built-in urllib2 module provides most of the HTTP capabilities you should need, but the API is thoroughly broken. This library is designed to make HTTP requests easy for developers. +%{?python_extras_subpkg:%python_extras_subpkg -n python%{python3_pkgversion}-requests -i %{python3_sitelib}/*.egg-info security socks} + %prep %autosetup -p1 -n requests-%{version} @@ -105,6 +107,9 @@ PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} -m pytest -v %changelog +* Fri Jul 10 2020 Miro Hrončok - 2.23.0-5 +- Add requests[security] and requests[socks] subpackages + * Sat May 30 2020 Miro Hrončok - 2.23.0-4 - Test with pytest 4, drop manual requires From f176dee1d6a81282e6cee4a48fb64ba09c17be00 Mon Sep 17 00:00:00 2001 From: Miro Hrončok Date: Jul 11 2020 08:33:11 +0000 Subject: [PATCH 2/2] Deselect test_https_warnings See https://bugzilla.redhat.com/show_bug.cgi?id=1676023 and https://github.com/psf/requests/issues/5530 --- diff --git a/python-requests.spec b/python-requests.spec index 344d8ae..013aaf8 100644 --- a/python-requests.spec +++ b/python-requests.spec @@ -96,7 +96,8 @@ sed -i 's/ --doctest-modules//' pytest.ini %if %{with tests} %check -PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} -m pytest -v +# test_https_warnings: https://github.com/psf/requests/issues/5530 +%pytest -v -k "not test_https_warnings" %endif # tests %files -n python%{python3_pkgversion}-requests