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 Sep 10, 2024
1 parent ac3b541 commit 8a50b61
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 8 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.14.1 (2024-09-10)
2.15.0 (2024-09-10)
^^^^^^^^^^^^^^^^^^^
* relax botocore dependency specification
* bump botocore dependency specification

2.14.0 (2024-08-28)
^^^^^^^^^^^^^^^^^^^
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.14.1'
__version__ = '2.15.0'
9 changes: 9 additions & 0 deletions aiobotocore/endpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,13 @@ async def _do_get_response(self, request, operation_model, context):
history_recorder.record('HTTP_RESPONSE', http_response_record_dict)

protocol = operation_model.metadata['protocol']
customized_response_dict = {}
await self._event_emitter.emit(
f"before-parse.{service_id}.{operation_model.name}",
operation_model=operation_model,
response_dict=response_dict,
customized_response_dict=customized_response_dict,
)
parser = self._response_parser_factory.create_parser(protocol)

if asyncio.iscoroutinefunction(parser.parse):
Expand All @@ -216,6 +223,8 @@ async def _do_get_response(self, request, operation_model, context):
response_dict, operation_model.output_shape
)

parsed_response.update(customized_response_dict)

if http_response.status_code >= 300:
await self._add_modeled_error_fields(
response_dict,
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,18 @@ classifiers = [
dynamic = ["version", "readme"]

dependencies = [
"botocore >=1.35.0, <1.35.16", # NOTE: When updating, always keep `project.optional-dependencies` aligned
"botocore >=1.35.16, <1.35.17", # 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.34.0, <1.34.16",
"awscli >=1.34.16, <1.34.17",
]
boto3 = [
"boto3 >=1.35.0, <1.35.16",
"boto3 >=1.35.16, <1.35.17",
]

[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 @@ -361,8 +361,7 @@
},
Endpoint._get_response: {'bbf10e6e07147d50e09d7205bf0883bd673a8bf3'},
Endpoint._do_get_response: {
'5afcfe76196406903afb24e05e3dd0feeac1a23d',
'4a1cab721ecf2777419ba070c38db77ae3b6df1e',
'abad88892d61b22f2a6decffba2e40d070ba9f38',
},
Endpoint._needs_retry: {'f718e2ff874763a677648fe6f87cc65e4cec2792'},
Endpoint._send: {'644c7e5bb88fecaa0b2a204411f8c7e69cc90bf1'},
Expand Down

0 comments on commit 8a50b61

Please sign in to comment.