diff --git a/setup.py b/setup.py index 27f3948c66..1e5ffaa2f0 100755 --- a/setup.py +++ b/setup.py @@ -43,7 +43,8 @@ def run_tests(self): requires = [ 'charset_normalizer~=2.0.0; python_version >= "3"', 'chardet>=3.0.2,<5; python_version < "3"', - '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'