14
0

Accepting request 1065612 from home:dirkmueller:acdc

- Don't upper limit version of charset_normalizer required.

OBS-URL: https://build.opensuse.org/request/show/1065612
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests?expand=0&rev=169
This commit is contained in:
2023-02-13 23:21:38 +00:00
committed by Git OBS Bridge
parent ed3af5b690
commit a97af8bc6f
5 changed files with 22 additions and 63 deletions

View File

@@ -26,7 +26,7 @@
%endif
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-requests%{psuffix}
Version: 2.28.2
Version: 2.27.1
Release: 0
Summary: Python HTTP Library
License: Apache-2.0
@@ -35,8 +35,6 @@ URL: https://docs.python-requests.org/
Source: https://files.pythonhosted.org/packages/source/r/requests/requests-%{version}.tar.gz
# PATCH-FIX-SUSE: do not hardcode versions in setup.py/requirements
Patch0: requests-no-hardcoded-version.patch
# PATCH-FIX-UPSTREAN: Allow charset normalizer >=2 and <4
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
@@ -101,6 +99,9 @@ sed -i '1s/^#!.*$//' requests/certs.py
# requires httpbin 0.6.0
sed -i "s#\(httpbin.*\), 'never'#\1#" tests/test_requests.py
# Fix charset_normalizer requirements, we cannot do the upper limit.
sed -i -e '/charset_normalizer/s/\~/>/' setup.py
%build
%python_build