Skip to content

Commit 5a0f035

Browse files
authored
Release: AWS SDK Sagemaker Runtime HTTP2 0.3.0
1 parent 3c94529 commit 5a0f035

6 files changed

Lines changed: 26 additions & 26 deletions

File tree

clients/aws-sdk-python/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ dependencies = []
2323

2424
[project.optional-dependencies]
2525
bedrock_runtime = ["aws_sdk_bedrock_runtime==0.3.0"]
26-
sagemaker_runtime_http2 = ["aws_sdk_sagemaker_runtime_http2==0.1.0"]
26+
sagemaker_runtime_http2 = ["aws_sdk_sagemaker_runtime_http2==0.3.0"]
2727
transcribe_streaming = ["aws_sdk_transcribe_streaming==0.3.0"]
2828
all = [
2929
"aws_sdk_python[bedrock_runtime]",

clients/aws-sdk-sagemaker-runtime-http2/CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,20 @@
22

33
## Unreleased
44

5+
* None yet.
6+
7+
## v0.3.0
8+
9+
This release proceeds 0.1.0. There is no 0.2.0 as the initial release was intended to be inline
10+
with the `smithy-aws-core` version used in the client.
11+
12+
### Breaking
13+
* Function signature for `resolve_retry_strategy` has been changed to prevent unnecessary code duplication in operation methods. This will affect all 0.3.0 clients.
14+
15+
### Dependencies
16+
* **Updated**: `smithy_aws_core[eventstream, json]` from `~=0.2.0` to `~=0.3.0`.
17+
* **Updated**: `smithy_core` from `~=0.2.0` to `~=0.3.0`.
18+
519
## v0.1.0
620

721
### Features

clients/aws-sdk-sagemaker-runtime-http2/docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
project = "Amazon SageMaker Runtime HTTP2"
99
author = "Amazon Web Services"
10-
release = "0.1.0"
10+
release = "0.3.0"
1111

1212
extensions = ["sphinx.ext.autodoc", "sphinx.ext.viewcode"]
1313

clients/aws-sdk-sagemaker-runtime-http2/pyproject.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
[project]
55
name = "aws_sdk_sagemaker_runtime_http2"
6-
version = "0.1.0"
6+
version = "0.3.0"
77
description = "aws_sdk_sagemaker_runtime_http2 client"
88
readme = "README.md"
99
requires-python = ">=3.12"
@@ -24,15 +24,15 @@ classifiers = [
2424
]
2525

2626
dependencies = [
27-
"smithy_aws_core[eventstream, json]~=0.2.0",
28-
"smithy_core~=0.2.0",
27+
"smithy_aws_core[eventstream, json]~=0.3.0",
28+
"smithy_core~=0.3.0",
2929
"smithy_http[awscrt]~=0.3.0"
3030
]
3131

3232
[dependency-groups]
3333
test = [
34-
"pytest>=7.2.0,<8.0.0",
35-
"pytest-asyncio>=0.20.3,<0.21.0"
34+
"pytest>=9.0.1,<10.0.0",
35+
"pytest-asyncio>=1.3.0,<1.4.0"
3636
]
3737

3838
docs = [
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Code generated by smithy-python-codegen DO NOT EDIT.
22

3-
__version__: str = "0.1.0"
3+
__version__: str = "0.3.0"

clients/aws-sdk-sagemaker-runtime-http2/src/aws_sdk_sagemaker_runtime_http2/client.py

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
from smithy_core.aio.eventstream import DuplexEventStream
88
from smithy_core.exceptions import ExpectationNotMetError
99
from smithy_core.interceptors import InterceptorChain
10-
from smithy_core.interfaces.retries import RetryStrategy
11-
from smithy_core.retries import RetryStrategyOptions, RetryStrategyResolver
10+
from smithy_core.retries import RetryStrategyResolver
1211
from smithy_core.types import TypedProperties
1312
from smithy_http.plugins import user_agent_plugin
1413

@@ -108,22 +107,9 @@ async def invoke_endpoint_with_bidirectional_stream(
108107
"protocol and transport MUST be set on the config to make calls."
109108
)
110109

111-
# Resolve retry strategy from config
112-
if isinstance(config.retry_strategy, RetryStrategy):
113-
retry_strategy = config.retry_strategy
114-
elif isinstance(config.retry_strategy, RetryStrategyOptions):
115-
retry_strategy = await self._retry_strategy_resolver.resolve_retry_strategy(
116-
options=config.retry_strategy
117-
)
118-
elif config.retry_strategy is None:
119-
retry_strategy = await self._retry_strategy_resolver.resolve_retry_strategy(
120-
options=RetryStrategyOptions()
121-
)
122-
else:
123-
raise TypeError(
124-
f"retry_strategy must be RetryStrategy, RetryStrategyOptions, or None, "
125-
f"got {type(config.retry_strategy).__name__}"
126-
)
110+
retry_strategy = await self._retry_strategy_resolver.resolve_retry_strategy(
111+
retry_strategy=config.retry_strategy
112+
)
127113

128114
pipeline = RequestPipeline(protocol=config.protocol, transport=config.transport)
129115
call = ClientCall(

0 commit comments

Comments
 (0)