Skip to content

Commit f73a059

Browse files
committed
bump botocore dependency specification
1 parent e2d71c0 commit f73a059

File tree

5 files changed

+22
-18
lines changed

5 files changed

+22
-18
lines changed

CHANGES.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Changes
22
-------
33

4-
2.20.0 (2025-02-13)
4+
2.20.0 (2025-02-19)
55
^^^^^^^^^^^^^^^^^^^
66
* patch `AwsChunkedWrapper.read`
77
* bump botocore dependency specification

aiobotocore/httpchecksum.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
FlexibleChecksumError,
77
_apply_request_header_checksum,
88
base64,
9+
conditionally_calculate_md5,
910
determine_content_length,
1011
logger,
1112
)
@@ -169,7 +170,10 @@ def apply_request_checksum(request):
169170
if not algorithm:
170171
return
171172

172-
if algorithm["in"] == "header":
173+
if algorithm == "conditional-md5":
174+
# Special case to handle the http checksum required trait
175+
conditionally_calculate_md5(request)
176+
elif algorithm["in"] == "header":
173177
_apply_request_header_checksum(request)
174178
elif algorithm["in"] == "trailer":
175179
_apply_request_trailer_checksum(request)

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ dynamic = ["version", "readme"]
3232
dependencies = [
3333
"aiohttp >= 3.9.2, < 4.0.0",
3434
"aioitertools >= 0.5.1, < 1.0.0",
35-
"botocore >= 1.36.18, < 1.36.20", # NOTE: When updating, always keep `project.optional-dependencies` aligned
35+
"botocore >= 1.36.20, < 1.36.22", # NOTE: When updating, always keep `project.optional-dependencies` aligned
3636
"python-dateutil >= 2.1, < 3.0.0",
3737
"jmespath >= 0.7.1, < 2.0.0",
3838
"multidict >= 6.0.0, < 7.0.0",
@@ -43,10 +43,10 @@ dependencies = [
4343

4444
[project.optional-dependencies]
4545
awscli = [
46-
"awscli >= 1.37.18, < 1.37.20",
46+
"awscli >= 1.37.20, < 1.37.22",
4747
]
4848
boto3 = [
49-
"boto3 >= 1.36.18, < 1.36.20",
49+
"boto3 >= 1.36.20, < 1.36.22",
5050
]
5151

5252
[project.urls]

tests/test_patches.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@
717717
},
718718
AwsChunkedWrapper.__iter__: {'261e26d1061655555fe3dcb2689d963e43f80fb0'},
719719
apply_request_checksum: {
720-
'94f2d201a07a3831fd55d8ca2f2d75cdb06a9514',
720+
'6d904d118cd9d768935e38a60a73a46c67a8d440',
721721
},
722722
_apply_request_trailer_checksum: {
723723
'45f483dd8520bf67616a063bdf6386865aad3591',

uv.lock

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)