Skip to content

Commit be1383a

Browse files
author
Ket Patel
committed
fix: replace lambdainternal client with botocore lib having latest Lambda client model
- Remove load_preview_botocore_models() calls from initialize_from_env() - Update boto3.client() calls from lambdainternal to lambda - Remove lambdainternal botocore model files - Add boto3/botocore wheel files to lib directory - Update tests to expect lambda client instead of lambdainternal - Add allow-direct-references = true to pyproject.toml
1 parent c1683de commit be1383a

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ classifiers = [
2020
]
2121
dependencies = [
2222
# TODO replace following with `"boto3>=1.40.30"` when we switch bundled botocore with publically available one
23-
"botocore @ file:lib/botocore-1.40.51-py3-none-any.whl",
24-
"boto3 @ file:lib/boto3-1.40.51-py3-none-any.whl"
23+
"botocore @ file:src/aws_durable_execution_sdk_python/lib/botocore-1.40.51-py3-none-any.whl",
24+
"boto3 @ file:src/aws_durable_execution_sdk_python/lib/boto3-1.40.51-py3-none-any.whl"
2525
]
2626

2727
[project.urls]

src/aws_durable_execution_sdk_python/lambda_service.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -924,7 +924,6 @@ def initialize_local_runner_client() -> LambdaClient:
924924

925925
@staticmethod
926926
def initialize_from_env() -> LambdaClient:
927-
928927
endpoint_url = os.getenv("AWS_ENDPOINT_URL_LAMBDA", None)
929928
if not endpoint_url:
930929
client = boto3.client(

tests/lambda_service_test.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1854,9 +1854,7 @@ def test_lambda_client_initialize_from_env_with_endpoint(mock_boto_client):
18541854

18551855
client = LambdaClient.initialize_from_env()
18561856

1857-
mock_boto_client.assert_called_with(
1858-
"lambda", endpoint_url="http://localhost:3000"
1859-
)
1857+
mock_boto_client.assert_called_with("lambda", endpoint_url="http://localhost:3000")
18601858
assert isinstance(client, LambdaClient)
18611859

18621860

0 commit comments

Comments
 (0)