- update to 2.26.0:
- `Session.send` now correctly resolves proxy configurations from both the Session and Request. Behavior now matches `Session.request`. (#5681) - Fixed a race condition in zip extraction when using Requests in parallel from zip archive. (#5707) - Instead of `chardet`, use the MIT-licensed `charset_normalizer` for Python3 to remove license ambiguity for projects bundling requests. - Requests now supports `idna` 3.x on Python 3. `idna` 2.x will continue to be used on Python 2 installations. (#5711) - The `requests[security]` extra has been converted to a no-op install. PyOpenSSL is no longer the recommended secure option for Requests. (#5867) - Requests has officially dropped support for Python 3.5. (#5867) - drop 5711.patch: upstream OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests?expand=0&rev=154
This commit is contained in:
parent
c4ec337410
commit
6590e207df
50
5711.patch
50
5711.patch
@ -1,50 +0,0 @@
|
||||
From 9484e13c7da927119fe82794bb5571cec144b6d7 Mon Sep 17 00:00:00 2001
|
||||
From: Naor Livne <naorlivne@gmail.com>
|
||||
Date: Fri, 1 Jan 2021 14:31:14 +0200
|
||||
Subject: [PATCH 1/2] bump idna has version 3.0 was released
|
||||
|
||||
---
|
||||
setup.py | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/setup.py b/setup.py
|
||||
index 7ba4b2a25f..f265384236 100755
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -43,7 +43,7 @@ def run_tests(self):
|
||||
|
||||
requires = [
|
||||
'chardet>=3.0.2,<5',
|
||||
- 'idna>=2.5,<3',
|
||||
+ 'idna>=2.5,<4',
|
||||
'urllib3>=1.21.1,<1.27',
|
||||
'certifi>=2017.4.17'
|
||||
|
||||
|
||||
From d3e00a4958af046879f24de365d5589d861ea6ef Mon Sep 17 00:00:00 2001
|
||||
From: Naor Livne <naorlivne@gmail.com>
|
||||
Date: Tue, 5 Jan 2021 16:31:15 +0200
|
||||
Subject: [PATCH 2/2] Update setup.py
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Co-authored-by: Mickaël Schoentgen <contact@tiger-222.fr>
|
||||
---
|
||||
setup.py | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/setup.py b/setup.py
|
||||
index f265384236..5ce59e621d 100755
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -43,7 +43,8 @@ def run_tests(self):
|
||||
|
||||
requires = [
|
||||
'chardet>=3.0.2,<5',
|
||||
- 'idna>=2.5,<4',
|
||||
+ 'idna>=2.5,<3 ; python_version < "3"',
|
||||
+ 'idna>=2.5,<4 ; python_version >= "3"',
|
||||
'urllib3>=1.21.1,<1.27',
|
||||
'certifi>=2017.4.17'
|
||||
|
@ -1,3 +1,20 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 26 21:08:01 UTC 2021 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- update to 2.26.0:
|
||||
- `Session.send` now correctly resolves proxy configurations from both
|
||||
the Session and Request. Behavior now matches `Session.request`. (#5681)
|
||||
- Fixed a race condition in zip extraction when using Requests in parallel
|
||||
from zip archive. (#5707)
|
||||
- Instead of `chardet`, use the MIT-licensed `charset_normalizer` for Python3
|
||||
to remove license ambiguity for projects bundling requests.
|
||||
- Requests now supports `idna` 3.x on Python 3. `idna` 2.x will continue to
|
||||
be used on Python 2 installations. (#5711)
|
||||
- The `requests[security]` extra has been converted to a no-op install.
|
||||
PyOpenSSL is no longer the recommended secure option for Requests. (#5867)
|
||||
- Requests has officially dropped support for Python 3.5. (#5867)
|
||||
- drop 5711.patch: upstream
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jul 1 06:28:57 UTC 2021 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
|
@ -26,7 +26,7 @@
|
||||
%endif
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-requests%{psuffix}
|
||||
Version: 2.25.1
|
||||
Version: 2.26.0
|
||||
Release: 0
|
||||
Summary: Python HTTP Library
|
||||
License: Apache-2.0
|
||||
@ -35,15 +35,13 @@ URL: http://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-UPSTREAM: gh#psf/requests#5711
|
||||
Patch1: https://patch-diff.githubusercontent.com/raw/psf/requests/pull/5711.patch
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: ca-certificates
|
||||
Requires: python
|
||||
Requires: python-certifi >= 2017.4.17
|
||||
Requires: python-chardet >= 3.0.2
|
||||
Requires: python-charset_normalizer >= 2.0.0
|
||||
Requires: python-idna >= 2.5
|
||||
Requires: python-py
|
||||
Requires: python-urllib3 >= 1.21.1
|
||||
@ -62,7 +60,7 @@ Recommends: python-pyOpenSSL >= 0.14
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module PySocks >= 1.5.6}
|
||||
BuildRequires: %{python_module brotlipy}
|
||||
BuildRequires: %{python_module chardet >= 3.0.2}
|
||||
BuildRequires: %{python_module charset_normalizer >= 2.0.0}
|
||||
BuildRequires: %{python_module idna >= 2.5}
|
||||
BuildRequires: %{python_module pytest-httpbin >= 0.0.7}
|
||||
BuildRequires: %{python_module pytest-mock}
|
||||
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:27973dd4a904a4f13b263a19c866c13b92a39ed1c964655f025f3f8d3d75b804
|
||||
size 102161
|
3
requests-2.26.0.tar.gz
Normal file
3
requests-2.26.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:b8aa58f8cf793ffd8782d3d8cb19e66ef36f7aba4353eec859e74678b01b07a7
|
||||
size 104433
|
Loading…
x
Reference in New Issue
Block a user