Files
MINGW-packages/mingw-w64-python-requests/0001-support-newer-idna-5711.patch
2021-01-29 17:15:30 +01:00

15 lines
348 B
Diff

diff --git a/setup.py b/setup.py
index 7ba4b2a25f..5ce59e621d 100755
--- a/setup.py
+++ b/setup.py
@@ -43,7 +43,8 @@ def run_tests(self):
requires = [
'chardet>=3.0.2,<5',
- 'idna>=2.5,<3',
+ 'idna>=2.5,<3 ; python_version < "3"',
+ 'idna>=2.5,<4 ; python_version >= "3"',
'urllib3>=1.21.1,<1.27',
'certifi>=2017.4.17'