From 6590e207dfe240a82007e482a46dfa314ab05c837d114cf297b8ed5b636ef0f5 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 26 Oct 2021 21:10:00 +0000 Subject: [PATCH] - 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 --- 5711.patch | 50 ----------------------------------------- python-requests.changes | 17 ++++++++++++++ python-requests.spec | 8 +++---- requests-2.25.1.tar.gz | 3 --- requests-2.26.0.tar.gz | 3 +++ 5 files changed, 23 insertions(+), 58 deletions(-) delete mode 100644 5711.patch delete mode 100644 requests-2.25.1.tar.gz create mode 100644 requests-2.26.0.tar.gz diff --git a/5711.patch b/5711.patch deleted file mode 100644 index 0440137..0000000 --- a/5711.patch +++ /dev/null @@ -1,50 +0,0 @@ -From 9484e13c7da927119fe82794bb5571cec144b6d7 Mon Sep 17 00:00:00 2001 -From: Naor Livne -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 -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 ---- - 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' - diff --git a/python-requests.changes b/python-requests.changes index 5258ebd..298852a 100644 --- a/python-requests.changes +++ b/python-requests.changes @@ -1,3 +1,20 @@ +------------------------------------------------------------------- +Tue Oct 26 21:08:01 UTC 2021 - Dirk Müller + +- 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 diff --git a/python-requests.spec b/python-requests.spec index 48d0e57..c83324d 100644 --- a/python-requests.spec +++ b/python-requests.spec @@ -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} diff --git a/requests-2.25.1.tar.gz b/requests-2.25.1.tar.gz deleted file mode 100644 index 73077ea..0000000 --- a/requests-2.25.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:27973dd4a904a4f13b263a19c866c13b92a39ed1c964655f025f3f8d3d75b804 -size 102161 diff --git a/requests-2.26.0.tar.gz b/requests-2.26.0.tar.gz new file mode 100644 index 0000000..b0204fd --- /dev/null +++ b/requests-2.26.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b8aa58f8cf793ffd8782d3d8cb19e66ef36f7aba4353eec859e74678b01b07a7 +size 104433