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 Jan 17, 2025
1 parent 6bc4b3e commit cd6c080
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 30 deletions.
4 changes: 2 additions & 2 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
Changes
-------

2.17.1 (2025-01-17)
2.18.0 (2025-01-17)
^^^^^^^^^^^^^^^^^^^
* relax botocore dependency specification
* bump botocore dependency specification

2.17.0 (2025-01-06)
^^^^^^^^^^^^^^^^^^^
Expand Down
2 changes: 1 addition & 1 deletion aiobotocore/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '2.17.1'
__version__ = '2.18.0'
11 changes: 6 additions & 5 deletions aiobotocore/httpchecksum.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
FlexibleChecksumError,
_apply_request_header_checksum,
base64,
conditionally_calculate_md5,
determine_content_length,
logger,
)
Expand Down Expand Up @@ -145,17 +144,19 @@ def apply_request_checksum(request):
if not algorithm:
return

if algorithm == "conditional-md5":
# Special case to handle the http checksum required trait
conditionally_calculate_md5(request)
elif algorithm["in"] == "header":
if algorithm["in"] == "header":
_apply_request_header_checksum(request)
elif algorithm["in"] == "trailer":
_apply_request_trailer_checksum(request)
else:
raise FlexibleChecksumError(
error_msg="Unknown checksum variant: {}".format(algorithm["in"])
)
if "request_algorithm_header" in checksum_context:
request_algorithm_header = checksum_context["request_algorithm_header"]
request["headers"][request_algorithm_header["name"]] = (
request_algorithm_header["value"]
)


def _apply_request_trailer_checksum(request):
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ dynamic = ["version", "readme"]
dependencies = [
"aiohttp >= 3.9.2, < 4.0.0",
"aioitertools >= 0.5.1, < 1.0.0",
"botocore >= 1.35.74, < 1.35.100", # NOTE: When updating, always keep `project.optional-dependencies` aligned
"botocore >= 1.36.0, < 1.36.1", # NOTE: When updating, always keep `project.optional-dependencies` aligned
"python-dateutil >= 2.1, < 3.0.0",
"jmespath >= 0.7.1, < 2.0.0",
"multidict >= 6.0.0, < 7.0.0",
Expand All @@ -43,10 +43,10 @@ dependencies = [

[project.optional-dependencies]
awscli = [
"awscli >= 1.36.15, < 1.36.41",
"awscli >= 1.37.0, < 1.37.1",
]
boto3 = [
"boto3 >= 1.35.74, < 1.35.100",
"boto3 >= 1.36.0, < 1.36.1",
]

[project.urls]
Expand Down
6 changes: 2 additions & 4 deletions tests/test_patches.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,7 @@
# config.py
Config.merge: {'c3dd8c3ffe0da86953ceba4a35267dfb79c6a2c8'},
Config: {
'823f8d031fc7218a600a56268a369aaa878f46c8',
'b1bd1c2cb9a20afa98db306c803617543ffecbf4',
'b74583575a542516edeeeec2e5d30ee61ce449b0',
},
# credentials.py
create_mfa_serial_refresher: {'9b5e98782fcacdcea5899a6d0d29d1b9de348bb0'},
Expand Down Expand Up @@ -716,8 +715,7 @@
},
AwsChunkedWrapper.__iter__: {'261e26d1061655555fe3dcb2689d963e43f80fb0'},
apply_request_checksum: {
'bcc044f0655f30769994efab72b29e76d73f7e39',
'5ebac6a8f1475a6b42b356135bc5f5840ac07a55',
'94f2d201a07a3831fd55d8ca2f2d75cdb06a9514',
},
_apply_request_trailer_checksum: {
'28cdf19282be7cd2c99a734831ec4f489648bcc7'
Expand Down
30 changes: 15 additions & 15 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cd6c080

Please sign in to comment.