Skip to content

Commit

Permalink
Move urllib3 2.x pin for Python 3.10+ (#3141)
Browse files Browse the repository at this point in the history
  • Loading branch information
nateprewitt authored Mar 14, 2024
1 parent 802518d commit f9470df
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changes/next-release/enhancement-urllib3-72501.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"type": "enhancement",
"category": "``urllib3``",
"description": "Added support for urllib3 2.2.1+ in Python 3.10+"
}
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ requires_dist =
jmespath>=0.7.1,<2.0.0
python-dateutil>=2.1,<3.0.0
urllib3>=1.25.4,<1.27; python_version<"3.10"
urllib3>=1.25.4,<2.1; python_version>="3.10"
urllib3>=1.25.4,!=2.2.0,<3; python_version>="3.10"

[options.extras_require]
crt = awscrt==0.19.19
Expand Down
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,11 @@ def find_version(*file_paths):
requires = [
'jmespath>=0.7.1,<2.0.0',
'python-dateutil>=2.1,<3.0.0',
# Prior to Python 3.10, Python doesn't require openssl 1.1.1
# but urllib3 2.0+ does. This means all botocore users will be
# broken by default on Amazon Linux 2 and AWS Lambda without this pin.
'urllib3>=1.25.4,<1.27 ; python_version < "3.10"',
'urllib3>=1.25.4,<2.1 ; python_version >= "3.10"',
'urllib3>=1.25.4,!=2.2.0,<3 ; python_version >= "3.10"',
]

extras_require = {
Expand Down

0 comments on commit f9470df

Please sign in to comment.