Skip to content

Commit

Permalink
bump botocore dependency specification
Browse files Browse the repository at this point in the history
  • Loading branch information
jakob-keller committed Dec 16, 2024
1 parent 1f87027 commit 38973fe
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
5 changes: 5 additions & 0 deletions aiobotocore/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,13 +461,18 @@ async def redirect_from_error(
0
].status_code in (301, 302, 307)
is_permanent_redirect = error_code == 'PermanentRedirect'
is_opt_in_region_redirect = (
error_code == 'IllegalLocationConstraintException'
and operation.name != 'CreateBucket'
)
if not any(
[
is_special_head_object,
is_wrong_signing_region,
is_permanent_redirect,
is_special_head_bucket,
is_redirect_status,
is_opt_in_region_redirect,
]
):
return
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,18 @@ classifiers = [
dynamic = ["version", "readme"]

dependencies = [
"botocore >=1.35.47, <1.35.67", # NOTE: When updating, always keep `project.optional-dependencies` aligned
"botocore >=1.35.67, <1.35.74", # NOTE: When updating, always keep `project.optional-dependencies` aligned
"aiohttp >=3.9.2, <4.0.0",
"wrapt >=1.10.10, <2.0.0",
"aioitertools >=0.5.1, <1.0.0",
]

[project.optional-dependencies]
awscli = [
"awscli >=1.35.13, <1.36.8",
"awscli >=1.36.8, <1.36.15",
]
boto3 = [
"boto3 >=1.35.47, <1.35.67",
"boto3 >=1.35.67, <1.35.74",
]

[project.urls]
Expand Down
3 changes: 1 addition & 2 deletions tests/test_patches.py
Original file line number Diff line number Diff line change
Expand Up @@ -571,8 +571,7 @@
'e7e5a8ce541110eb79bf98414171d3a1c137e32b'
},
S3RegionRedirectorv2.redirect_from_error: {
'ac37ca2ca48f7bde42d9659c01d5bd5bc08a78f9',
'bc01047b596b1d1113df7cc2481af9cca2a49267',
'8e3003ec881c7eab0945fe4b6e021ca488fbcd78',
},
S3RegionRedirectorv2.get_bucket_region: {
'b5bbc8b010576668dc2812d657c4b48af79e8f99'
Expand Down

0 comments on commit 38973fe

Please sign in to comment.