diff --git a/python-requests.changes b/python-requests.changes index 498a415..4daba77 100644 --- a/python-requests.changes +++ b/python-requests.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Feb 16 17:03:23 UTC 2023 - David Anes + +- 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 diff --git a/requests-no-hardcoded-version.patch b/requests-no-hardcoded-version.patch index 2aeaa86..1640a97 100644 --- a/requests-no-hardcoded-version.patch +++ b/requests-no-hardcoded-version.patch @@ -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") +