Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/aws_durable_execution_sdk_python/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
"""AWS Lambda Durable Executions Python SDK."""

# Package metadata
from aws_durable_execution_sdk_python.__about__ import __version__

# Main context - used in every durable function
# Helper decorators - commonly used for step functions
# Concurrency
Expand Down Expand Up @@ -31,6 +34,7 @@
"InvocationError",
"StepContext",
"ValidationError",
"__version__",
"durable_execution",
"durable_step",
"durable_wait_for_callback",
Expand Down
9 changes: 9 additions & 0 deletions tests/durable_executions_python_language_sdk_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,12 @@
def test_aws_durable_execution_sdk_python_importable():
"""Test aws_durable_execution_sdk_python is importable."""
import aws_durable_execution_sdk_python # noqa: PLC0415, F401


def test_version_is_accessible():
"""Test __version__ is accessible from package root."""
import aws_durable_execution_sdk_python # noqa: PLC0415

assert hasattr(aws_durable_execution_sdk_python, "__version__")
assert isinstance(aws_durable_execution_sdk_python.__version__, str)
assert len(aws_durable_execution_sdk_python.__version__) > 0