Matej Cepl 2023-02-16 17:38:12 +00:00 committed by Git OBS Bridge
parent a97af8bc6f
commit fe92d4619f
2 changed files with 25 additions and 2 deletions

View File

@ -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>

View File

@ -2,8 +2,10 @@
setup.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/setup.py
+++ b/setup.py
Index: requests-2.27.1/setup.py
===================================================================
--- requests-2.27.1.orig/setup.py
+++ requests-2.27.1/setup.py
@@ -50,7 +50,7 @@ requires = [
]
@ -13,3 +15,18 @@
'pytest-cov',
'pytest-mock',
'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")