14
0
Files
python-requests/requests-no-hardcoded-version.patch

33 lines
1.1 KiB
Diff
Raw Normal View History

---
setup.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 = [
]
test_requirements = [
- 'pytest-httpbin==0.0.7',
+ 'pytest-httpbin>=0.0.7',
'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")