Skip to contentSkip to conversation

python3-requests: Upgrade 2.25.1 -> 2.26.0

PATCH New Leon Anavi 1 participant 2 messages Jul 16, 2021

lore
Share & tools
lore

Leon Anavi

author
#0 lore raw

PATCH 1/2 python3-requests: Upgrade 2.25.1 -> 2.26.0

Upgrade to release 2.26.0:

- Requests now supports Brotli compression, if either the brotli or brotlicffi package is installed
- Session.send now correctly resolves proxy configurations from both the Session and Request. Behavior now matches Session.request.
- Fixed a race condition in zip extraction when using Requests in parallel from zip archive.
- Requests now supports idna 3.x on Python 3. idna 2.x will continue to be used on Python 2 installations

Drop setup.py-Support-idna-version-3.1.patch because the issue with idna version has been solved in the upstream for Python 3.

---
 .../setup.py-Support-idna-version-3.1.patch   | 40 -------------------
 ...s_2.25.1.bb => python3-requests_2.26.0.bb} |  4 +-
 2 files changed, 1 insertion(+), 43 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python3-requests/setup.py-Support-idna-version-3.1.patch
 rename meta-python/recipes-devtools/python/{python3-requests_2.25.1.bb => python3-requests_2.26.0.bb} (79%)
meta-python/recipes-devtools/python/python3-requests/setup.py-Support-idna-version-3.1.patch deleted +0 -40
deleted file mode 100644
index 26332249da..0000000000
@@ -1,40 +0,0 @@
-From fc45beed40a86c8fc38fc430765c1c5d2c9961c2 Mon Sep 17 00:00:00 2001
-From: Fabio Berton <[email protected]>
-Date: Thu, 4 Mar 2021 09:26:48 -0300
-Subject: [PATCH] setup.py: Support idna version 3.1
-Organization: O.S. Systems Software LTDA.
-
-Change idna required version to use python3-idna recipe that currently
-is on version 3.1.
-
-Without this change python-request doesn't work as the idna version
-doesn't match the required versions. When bump python-request recipe,
-verify if the upstream project bumped the idna version and drop this
-patch.
-
-As this recipe was tested with python3-idna_3.1 don't allow higher
-versions.
-
-Upstream-Status: Inappropriate [embedded specific]
-
-Signed-off-by: Fabio Berton <[email protected]>
----
- setup.py | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/setup.py b/setup.py
-index 7ba4b2a2..9d3b973e 100755
---- a/setup.py
-+++ b/setup.py
-@@ -43,7 +43,7 @@ packages = ['requests']
- 
- requires = [
-     'chardet>=3.0.2,<5',
--    'idna>=2.5,<3',
-+    'idna>=2.5,<3.2',
-     'urllib3>=1.21.1,<1.27',
-     'certifi>=2017.4.17'
- 
--- 
-2.30.1
-
meta-python/recipes-devtools/python/python3-requests_2.26.0.bb renamed from meta-python/recipes-devtools/python/python3-requests_2.25.1.bb +1 -3
similarity index 79%
rename from meta-python/recipes-devtools/python/python3-requests_2.25.1.bb
rename to meta-python/recipes-devtools/python/python3-requests_2.26.0.bb
index cea8fd5178..95e6e1a6b6 100644
@@ -3,9 +3,7 @@ HOMEPAGE = "http://python-requests.org"
 LICENSE = "Apache-2.0"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=34400b68072d710fecd0a2940a0d1658"
 
-SRC_URI += "file://setup.py-Support-idna-version-3.1.patch"
-
-SRC_URI[sha256sum] = "27973dd4a904a4f13b263a19c866c13b92a39ed1c964655f025f3f8d3d75b804"
+SRC_URI[sha256sum] = "b8aa58f8cf793ffd8782d3d8cb19e66ef36f7aba4353eec859e74678b01b07a7"
 
 inherit pypi setuptools3
 
Signature · 1 line
2.17.1
author
#1 lore raw

PATCH 2/2 python3-websocket-client: Upgrade 1.0.1 -> 1.1.0

Upgrade to release 1.1.0:

- Set enable_multithread to True by default
- Performance improvement in _mask() function
- Performance improvement in recv_strict() function
- Performance improvement by removing numpy-related code
- Support uppercase no_proxy, http_proxy, https_proxy env vars
- Add sslopt 'server_hostname' support
- Replace deprecated ssl.PROTOCOL_SSLv23 with ssl.PROTOCOL_TLS
- Update documentation, README

---
 ...socket-client_1.0.1.bb => python3-websocket-client_1.1.0.bb} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-python/recipes-devtools/python/{python3-websocket-client_1.0.1.bb => python3-websocket-client_1.1.0.bb} (83%)
meta-python/recipes-devtools/python/python3-websocket-client_1.1.0.bb renamed from meta-python/recipes-devtools/python/python3-websocket-client_1.0.1.bb +1 -1
similarity index 83%
rename from meta-python/recipes-devtools/python/python3-websocket-client_1.0.1.bb
rename to meta-python/recipes-devtools/python/python3-websocket-client_1.1.0.bb
index da4e05f308..b46392aeef 100644
@@ -7,7 +7,7 @@ HOMEPAGE = "https://github.com/websocket-client/websocket-client"
 LICENSE = "LGPLv2.1"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=c96ca6c1de8adc025adfada81d06fba5"
 
-SRC_URI[sha256sum] = "3e2bf58191d4619b161389a95bdce84ce9e0b24eb8107e7e590db682c2d0ca81"
+SRC_URI[sha256sum] = "b68e4959d704768fa20e35c9d508c8dc2bbc041fd8d267c0d7345cffe2824568"
 
 inherit pypi setuptools3
 
Signature · 1 line
2.17.1