OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests?expand=0&rev=170
This commit is contained in:
parent
a97af8bc6f
commit
fe92d4619f
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Feb 16 17:03:23 UTC 2023 - David Anes <david.anes@suse.com>
|
||||||
|
|
||||||
|
- Don't upper limit version of charset_normalized at runtime, too.
|
||||||
|
* Added change to patch: requests-no-hardcoded-version.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Feb 13 22:28:29 UTC 2023 - Matej Cepl <mcepl@suse.com>
|
Mon Feb 13 22:28:29 UTC 2023 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
@ -2,8 +2,10 @@
|
|||||||
setup.py | 2 +-
|
setup.py | 2 +-
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
--- a/setup.py
|
Index: requests-2.27.1/setup.py
|
||||||
+++ b/setup.py
|
===================================================================
|
||||||
|
--- requests-2.27.1.orig/setup.py
|
||||||
|
+++ requests-2.27.1/setup.py
|
||||||
@@ -50,7 +50,7 @@ requires = [
|
@@ -50,7 +50,7 @@ requires = [
|
||||||
|
|
||||||
]
|
]
|
||||||
@ -13,3 +15,18 @@
|
|||||||
'pytest-cov',
|
'pytest-cov',
|
||||||
'pytest-mock',
|
'pytest-mock',
|
||||||
'pytest-xdist',
|
'pytest-xdist',
|
||||||
|
Index: requests-2.27.1/requests/__init__.py
|
||||||
|
===================================================================
|
||||||
|
--- requests-2.27.1.orig/requests/__init__.py
|
||||||
|
+++ requests-2.27.1/requests/__init__.py
|
||||||
|
@@ -79,8 +79,8 @@ def check_compatibility(urllib3_version,
|
||||||
|
elif charset_normalizer_version:
|
||||||
|
major, minor, patch = charset_normalizer_version.split('.')[:3]
|
||||||
|
major, minor, patch = int(major), int(minor), int(patch)
|
||||||
|
- # charset_normalizer >= 2.0.0 < 3.0.0
|
||||||
|
- assert (2, 0, 0) <= (major, minor, patch) < (3, 0, 0)
|
||||||
|
+ # charset_normalizer >= 2.0.0 < 4.0.0
|
||||||
|
+ assert (2, 0, 0) <= (major, minor, patch) < (4, 0, 0)
|
||||||
|
else:
|
||||||
|
raise Exception("You need either charset_normalizer or chardet installed")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user