feat: export __version__ from package root#293
Open
Conversation
- Re-export __version__ from __about__ module at package level
- Add __version__ to __all__ for explicit public API declaration
- Add test to verify __version__ is accessible
Enables the standard Python version access pattern:
import aws_durable_execution_sdk_python
print(aws_durable_execution_sdk_python.__version__)
This follows the convention used by boto3, botocore, and AWS Lambda
Powertools, allowing users to access version information without
knowledge of internal module structure.
Author
|
Have investigated and the test failures appear to be unrelated to this PR. parallel_test.py looks to depend on thread execution order. The other is a CI permissions issue with fork PRs. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue #, if available:
N/A
Description of changes:
Re-export
__version__from__about__module at package level andadd it to
__all__for explicit public API declaration.This enables the standard Python version access pattern:
Currently, users must know about the internal
__about__submodule:This change aligns with the convention used by:
A test has been added to
durable_executions_python_language_sdk_test.pyto verify
__version__is accessible from the package root.By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice.