summaryrefslogtreecommitdiff
path: root/lang/python/python-requests/patches
diff options
context:
space:
mode:
authorJosef Schlehofer <pepe.schlehofer@gmail.com>2019-05-13 10:42:49 +0200
committerGitHub <noreply@github.com>2019-05-13 10:42:49 +0200
commit5d2eb58aa34c9db439f55731ffb8091ce61277a3 (patch)
treebb44c1d4a5ee07a4b05516568dda3e55e7581c17 /lang/python/python-requests/patches
parent870a71d05bc2991b2c3b41baebaee28f650f955c (diff)
parent8e04393a112a781fb0650bd9191dae8d8576a1e0 (diff)
Merge pull request #8807 from BKPepe/requests
python-requests: allow urllib3 1.25.x
Diffstat (limited to 'lang/python/python-requests/patches')
-rw-r--r--lang/python/python-requests/patches/0001-Allow-urllib3-125x.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/lang/python/python-requests/patches/0001-Allow-urllib3-125x.patch b/lang/python/python-requests/patches/0001-Allow-urllib3-125x.patch
new file mode 100644
index 000000000..e004e662d
--- /dev/null
+++ b/lang/python/python-requests/patches/0001-Allow-urllib3-125x.patch
@@ -0,0 +1,33 @@
+Commit in requests repository - urllib1.25 branch: https://github.com/kennethreitz/requests/commit/d6b5b401e8d6141bcefa4a70ff1c836aa085120b
+Pull request: https://github.com/kennethreitz/requests/pull/5063
+
+diff --git a/requests/__init__.py b/requests/__init__.py
+index bc168ee..9a899df 100644
+--- a/requests/__init__.py
++++ b/requests/__init__.py
+@@ -57,10 +57,10 @@ def check_compatibility(urllib3_version, chardet_version):
+ # Check urllib3 for compatibility.
+ major, minor, patch = urllib3_version # noqa: F811
+ major, minor, patch = int(major), int(minor), int(patch)
+- # urllib3 >= 1.21.1, <= 1.24
++ # urllib3 >= 1.21.1, <= 1.25
+ assert major == 1
+ assert minor >= 21
+- assert minor <= 24
++ assert minor <= 25
+
+ # Check chardet for compatibility.
+ major, minor, patch = chardet_version.split('.')[:3]
+diff --git a/setup.py b/setup.py
+index 10ce2c6..0d5d0cc 100755
+--- a/setup.py
++++ b/setup.py
+@@ -44,7 +44,7 @@ packages = ['requests']
+ requires = [
+ 'chardet>=3.0.2,<3.1.0',
+ 'idna>=2.5,<2.9',
+- 'urllib3>=1.21.1,<1.25',
++ 'urllib3>=1.21.1,<1.26,!=1.25.0',
+ 'certifi>=2017.4.17'
+
+ ]