Skip to content

Commit 38973fe

Browse files
committed
bump botocore dependency specification
1 parent 1f87027 commit 38973fe

3 files changed

Lines changed: 9 additions & 5 deletions

File tree

aiobotocore/utils.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,13 +461,18 @@ async def redirect_from_error(
461461
0
462462
].status_code in (301, 302, 307)
463463
is_permanent_redirect = error_code == 'PermanentRedirect'
464+
is_opt_in_region_redirect = (
465+
error_code == 'IllegalLocationConstraintException'
466+
and operation.name != 'CreateBucket'
467+
)
464468
if not any(
465469
[
466470
is_special_head_object,
467471
is_wrong_signing_region,
468472
is_permanent_redirect,
469473
is_special_head_bucket,
470474
is_redirect_status,
475+
is_opt_in_region_redirect,
471476
]
472477
):
473478
return

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,18 @@ classifiers = [
3030
dynamic = ["version", "readme"]
3131

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

3939
[project.optional-dependencies]
4040
awscli = [
41-
"awscli >=1.35.13, <1.36.8",
41+
"awscli >=1.36.8, <1.36.15",
4242
]
4343
boto3 = [
44-
"boto3 >=1.35.47, <1.35.67",
44+
"boto3 >=1.35.67, <1.35.74",
4545
]
4646

4747
[project.urls]

tests/test_patches.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -571,8 +571,7 @@
571571
'e7e5a8ce541110eb79bf98414171d3a1c137e32b'
572572
},
573573
S3RegionRedirectorv2.redirect_from_error: {
574-
'ac37ca2ca48f7bde42d9659c01d5bd5bc08a78f9',
575-
'bc01047b596b1d1113df7cc2481af9cca2a49267',
574+
'8e3003ec881c7eab0945fe4b6e021ca488fbcd78',
576575
},
577576
S3RegionRedirectorv2.get_bucket_region: {
578577
'b5bbc8b010576668dc2812d657c4b48af79e8f99'

0 commit comments

Comments
 (0)