From 9bd743bea952fefa837315bef77c764af54fb8507475fd3899662b11f6dae032 Mon Sep 17 00:00:00 2001 From: OBS User buildservice-autocommit Date: Thu, 11 Feb 2021 11:46:29 +0000 Subject: [PATCH] Updating link to change in openSUSE:Factory/python-requests revision 68.0 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests?expand=0&rev=c3af1fde49fadccc2ba875edb5defc88 --- python-requests.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/python-requests.spec b/python-requests.spec index 3f246bd..5e03f1a 100644 --- a/python-requests.spec +++ b/python-requests.spec @@ -106,6 +106,11 @@ sed -i "s#\(httpbin.*\), 'never'#\1#" tests/test_requests.py %install %if !%{with test} %python_install +%{python_expand # don't pin to idna<3 for python3, because many package installers check this and fail with newer idna +if [ ! 0%{$python_version_nodots} -lt 30 ]; then + sed -i -E 's/idna<3,?/idna/' %{buildroot}%{$python_sitelib}/requests-%{version}*-info/requires.txt +fi +} # check that urllib3 is not installed test ! -e %{buildroot}%{python3_sitelib}/requests/packages/urllib3 %python_expand %fdupes %{buildroot}%{$python_sitelib}