Skip to content

Commit dede99c

Browse files
committed
chore: rename to aws-durable-execution-sdk-python
Renamed the external module references from aws_durable_functions_sdk_python to aws_durable_execution_sdk_python and updated the testing module name from aws_durable_functions_sdk_python_testing to aws_durable_execution_sdk_python_testing throughout the entire codebase. Also update Lambda Service API to include new durable_execution_arn arg. 1. Updated all import statements across 52 files including: - All Python source files in src/aws_durable_execution_sdk_python_testing/ - All test files in tests/ - Documentation files (README.md, CONTRIBUTING.md) 2. Fixed API compatibility issues that arose from the module rename: - Updated InMemoryServiceClient.checkpoint() method to include the new durable_execution_arn parameter - Updated InMemoryServiceClient.get_execution_state() method to include the new durable_execution_arn parameter - Updated corresponding test cases to use the new method signatures - Added appropriate # noqa: ARG002 comments for unused parameters in the in-memory implementation 3. Maintained code quality standards: - All 406 tests pass ✅ - Type checking passes ✅ - Code formatting passes ✅ - Test coverage remains above 99% (99.15%) ✅
1 parent f8e365e commit dede99c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+254
-235
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,6 @@ __pycache__/
2424
.attach_*
2525

2626
dist/
27+
28+
.vscode/
29+
.kiro/

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ This will drop you into the Python debugger on the failed test.
9595
### Writing tests
9696
Place test files in the `tests/` directory, using file names that end with `_test`.
9797

98-
Mimic the package structure in the src/aws_durable_functions_sdk_python directory.
98+
Mimic the package structure in the src/aws_durable_execution_sdk_python directory.
9999
Name your module so that src/mypackage/mymodule.py has a dedicated unit test file
100100
tests/mypackage/mymodule_test.py
101101

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ def function_under_test(event: Any, context: DurableContext) -> list[str]:
8181
### Your test code
8282

8383
```python
84-
from aws_durable_functions_sdk_python.execution import InvocationStatus
85-
from aws_durable_functions_sdk_python_testing.runner import (
84+
from aws_durable_execution_sdk_python.execution import InvocationStatus
85+
from aws_durable_execution_sdk_python_testing.runner import (
8686
ContextOperation,
8787
DurableFunctionTestResult,
8888
DurableFunctionTestRunner,

pyproject.toml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ requires = ["hatchling"]
33
build-backend = "hatchling.build"
44

55
[project]
6-
name = "aws-durable-functions-sdk-python-testing"
6+
name = "aws-durable-execution-sdk-python-testing"
77
dynamic = ["version"]
8-
description = 'This the Python SDK for AWS Lambda Durable Functions.'
8+
description = 'This the Python SDK for AWS Lambda Durable Execution.'
99
readme = "README.md"
1010
requires-python = ">=3.13"
1111
license = "Apache-2.0"
@@ -22,25 +22,25 @@ classifiers = [
2222
]
2323
dependencies = [
2424
"boto3>=1.40.30",
25-
"aws_durable_functions_sdk_python @ git+ssh://git@github.com/aws/aws-durable-functions-sdk-python.git"
25+
"aws_durable_execution_sdk_python @ git+ssh://git@github.com/aws/aws-durable-execution-sdk-python.git"
2626
]
2727

2828
[project.urls]
29-
Documentation = "https://github.com/aws/aws-durable-functions-sdk-python-testing#readme"
30-
Issues = "https://github.com/aws/aws-durable-functions-sdk-python-testing/issues"
31-
Source = "https://github.com/aws/aws-durable-functions-sdk-python-testing"
29+
Documentation = "https://github.com/aws/aws-durable-execution-sdk-python-testing#readme"
30+
Issues = "https://github.com/aws/aws-durable-execution-sdk-python-testing/issues"
31+
Source = "https://github.com/aws/aws-durable-execution-sdk-python-testing"
3232

3333
[tool.hatch.build.targets.sdist]
34-
packages = ["src/aws_durable_functions_sdk_python_testing"]
34+
packages = ["src/aws_durable_execution_sdk_python_testing"]
3535

3636
[tool.hatch.build.targets.wheel]
37-
packages = ["src/aws_durable_functions_sdk_python_testing"]
37+
packages = ["src/aws_durable_execution_sdk_python_testing"]
3838

3939
[tool.hatch.metadata]
4040
allow-direct-references = true
4141

4242
[tool.hatch.version]
43-
path = "src/aws_durable_functions_sdk_python_testing/__about__.py"
43+
path = "src/aws_durable_execution_sdk_python_testing/__about__.py"
4444

4545
# [tool.hatch.envs.default]
4646
# dependencies=["pytest"]
@@ -56,27 +56,27 @@ dependencies = [
5656
]
5757

5858
[tool.hatch.envs.test.scripts]
59-
cov="pytest --cov-report=term-missing --cov-config=pyproject.toml --cov=src/aws_durable_functions_sdk_python_testing --cov=tests --cov-fail-under=99"
59+
cov="pytest --cov-report=term-missing --cov-config=pyproject.toml --cov=src/aws_durable_execution_sdk_python_testing --cov=tests --cov-fail-under=99"
6060

6161
[tool.hatch.envs.types]
6262
extra-dependencies = [
6363
"mypy>=1.0.0",
6464
"pytest"
6565
]
6666
[tool.hatch.envs.types.scripts]
67-
check = "mypy --install-types --non-interactive {args:src/aws_durable_functions_sdk_python_testing tests}"
67+
check = "mypy --install-types --non-interactive {args:src/aws_durable_execution_sdk_python_testing tests}"
6868

6969
[tool.coverage.run]
70-
source_pkgs = ["aws_durable_functions_sdk_python_testing", "tests"]
70+
source_pkgs = ["aws_durable_execution_sdk_python_testing", "tests"]
7171
branch = true
7272
parallel = true
7373
omit = [
74-
"src/aws_durable_functions_sdk_python_testing/__about__.py",
74+
"src/aws_durable_execution_sdk_python_testing/__about__.py",
7575
]
7676

7777
[tool.coverage.paths]
78-
aws_durable_functions_sdk_python_testing = ["src/aws_durable_functions_sdk_python_testing", "*/aws-durable-functions-sdk-python-testing/src/aws_durable_functions_sdk_python_testing"]
79-
tests = ["tests", "*/aws-durable-functions-sdk-python-testing/tests"]
78+
aws_durable_execution_sdk_python_testing = ["src/aws_durable_execution_sdk_python_testing", "*/aws-durable-execution-sdk-python-testing/src/aws_durable_execution_sdk_python_testing"]
79+
tests = ["tests", "*/aws-durable-execution-sdk-python-testing/tests"]
8080

8181
[tool.coverage.report]
8282
exclude_lines = [

src/aws_durable_functions_sdk_python_testing/__about__.py renamed to src/aws_durable_execution_sdk_python_testing/__about__.py

File renamed without changes.

src/aws_durable_functions_sdk_python_testing/__init__.py renamed to src/aws_durable_execution_sdk_python_testing/__init__.py

File renamed without changes.

src/aws_durable_functions_sdk_python_testing/checkpoint/__init__.py renamed to src/aws_durable_execution_sdk_python_testing/checkpoint/__init__.py

File renamed without changes.

src/aws_durable_functions_sdk_python_testing/checkpoint/processor.py renamed to src/aws_durable_execution_sdk_python_testing/checkpoint/processor.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,27 @@
44

55
from typing import TYPE_CHECKING
66

7-
from aws_durable_functions_sdk_python.lambda_service import (
7+
from aws_durable_execution_sdk_python.lambda_service import (
88
CheckpointOutput,
99
CheckpointUpdatedExecutionState,
1010
OperationUpdate,
1111
StateOutput,
1212
)
1313

14-
from aws_durable_functions_sdk_python_testing.checkpoint.transformer import (
14+
from aws_durable_execution_sdk_python_testing.checkpoint.transformer import (
1515
OperationTransformer,
1616
)
17-
from aws_durable_functions_sdk_python_testing.checkpoint.validators.checkpoint import (
17+
from aws_durable_execution_sdk_python_testing.checkpoint.validators.checkpoint import (
1818
CheckpointValidator,
1919
)
20-
from aws_durable_functions_sdk_python_testing.exceptions import InvalidParameterError
21-
from aws_durable_functions_sdk_python_testing.observer import ExecutionNotifier
22-
from aws_durable_functions_sdk_python_testing.token import CheckpointToken
20+
from aws_durable_execution_sdk_python_testing.exceptions import InvalidParameterError
21+
from aws_durable_execution_sdk_python_testing.observer import ExecutionNotifier
22+
from aws_durable_execution_sdk_python_testing.token import CheckpointToken
2323

2424
if TYPE_CHECKING:
25-
from aws_durable_functions_sdk_python_testing.execution import Execution
26-
from aws_durable_functions_sdk_python_testing.scheduler import Scheduler
27-
from aws_durable_functions_sdk_python_testing.store import ExecutionStore
25+
from aws_durable_execution_sdk_python_testing.execution import Execution
26+
from aws_durable_execution_sdk_python_testing.scheduler import Scheduler
27+
from aws_durable_execution_sdk_python_testing.store import ExecutionStore
2828

2929

3030
class CheckpointProcessor:

src/aws_durable_functions_sdk_python_testing/checkpoint/processors/__init__.py renamed to src/aws_durable_execution_sdk_python_testing/checkpoint/processors/__init__.py

File renamed without changes.

src/aws_durable_functions_sdk_python_testing/checkpoint/processors/base.py renamed to src/aws_durable_execution_sdk_python_testing/checkpoint/processors/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from datetime import timedelta
77
from typing import TYPE_CHECKING
88

9-
from aws_durable_functions_sdk_python.lambda_service import (
9+
from aws_durable_execution_sdk_python.lambda_service import (
1010
CallbackDetails,
1111
ContextDetails,
1212
ExecutionDetails,
@@ -20,7 +20,7 @@
2020
)
2121

2222
if TYPE_CHECKING:
23-
from aws_durable_functions_sdk_python_testing.observer import ExecutionNotifier
23+
from aws_durable_execution_sdk_python_testing.observer import ExecutionNotifier
2424

2525

2626
class OperationProcessor:

0 commit comments

Comments
 (0)