diff options
Diffstat (limited to 'dev-python/requests/files/requests-2.28.0-unpin-chardet.patch')
-rw-r--r-- | dev-python/requests/files/requests-2.28.0-unpin-chardet.patch | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/dev-python/requests/files/requests-2.28.0-unpin-chardet.patch b/dev-python/requests/files/requests-2.28.0-unpin-chardet.patch deleted file mode 100644 index bd0451daaf13..000000000000 --- a/dev-python/requests/files/requests-2.28.0-unpin-chardet.patch +++ /dev/null @@ -1,37 +0,0 @@ -https://github.com/psf/requests/pull/6179 - -From 09483bae4f56e4f4c227e2d25ee920c538271feb Mon Sep 17 00:00:00 2001 -From: Wong Hoi Sing Edison <hswong3i@pantarei-design.com> -Date: Sun, 26 Jun 2022 12:18:42 +0800 -Subject: [PATCH] Update Dependency with `chardet>=3.0.2,<6` - -https://github.com/chardet/chardet/releases/tag/5.0.0 was released on -2022-06-25 with remove of Python 3.6 support, which also align with our -Python > 3.6 requirement. - -Signed-off-by: Wong Hoi Sing Edison <hswong3i@pantarei-design.com> ---- a/requests/__init__.py -+++ b/requests/__init__.py -@@ -75,8 +75,8 @@ def check_compatibility(urllib3_version, chardet_version, charset_normalizer_ver - if chardet_version: - major, minor, patch = chardet_version.split(".")[:3] - major, minor, patch = int(major), int(minor), int(patch) -- # chardet_version >= 3.0.2, < 5.0.0 -- assert (3, 0, 2) <= (major, minor, patch) < (5, 0, 0) -+ # chardet_version >= 3.0.2, < 6.0.0 -+ assert (3, 0, 2) <= (major, minor, patch) < (6, 0, 0) - elif charset_normalizer_version: - major, minor, patch = charset_normalizer_version.split(".")[:3] - major, minor, patch = int(major), int(minor), int(patch) ---- a/setup.py -+++ b/setup.py -@@ -123,7 +123,7 @@ def run_tests(self): - extras_require={ - "security": [], - "socks": ["PySocks>=1.5.6, !=1.5.7"], -- "use_chardet_on_py3": ["chardet>=3.0.2,<5"], -+ "use_chardet_on_py3": ["chardet>=3.0.2,<6"], - }, - project_urls={ - "Documentation": "https://requests.readthedocs.io", - |