From d8227b81066094380690787de8d7a0e803cc7772 Mon Sep 17 00:00:00 2001 From: Nate Prewitt Date: Thu, 5 Oct 2023 17:13:55 -0600 Subject: [PATCH] Add support for urllib3 2.0 in Python 3.10+ --- setup.cfg | 3 ++- setup.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/setup.cfg b/setup.cfg index f29b12a824..f6cfc8a642 100644 --- a/setup.cfg +++ b/setup.cfg @@ -5,7 +5,8 @@ universal = 0 requires_dist = jmespath>=0.7.1,<2.0.0 python-dateutil>=2.1,<3.0.0 - urllib3>=1.25.4,<1.27 + urllib3>=1.25.4,<1.27 ; python_version < "3.10" + urllib3>=1.25.4,<2.1 ; python_version >= "3.10" [options.extras_require] crt = awscrt==0.16.26 diff --git a/setup.py b/setup.py index e2947f9506..795822c9fd 100644 --- a/setup.py +++ b/setup.py @@ -25,7 +25,8 @@ def find_version(*file_paths): requires = [ 'jmespath>=0.7.1,<2.0.0', 'python-dateutil>=2.1,<3.0.0', - 'urllib3>=1.25.4,<1.27', + 'urllib3>=1.25.4,<1.27 ; python_version < "3.10"', + 'urllib3>=1.25.4,<2.1 ; python_version >= "3.10"', ] setup(