generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 13
feat: add initial operations #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| # This workflow will install Python dependencies, run tests and lint with a variety of Python versions | ||
| # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python | ||
|
|
||
| name: Python package | ||
|
|
||
| on: | ||
| push: | ||
|
|
||
| pull_request: | ||
| branches: [ main ] | ||
|
|
||
| jobs: | ||
| build: | ||
|
|
||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| python-version: ["3.11", "3.13"] | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v5 | ||
| - name: Set up Python ${{ matrix.python-version }} | ||
| uses: actions/setup-python@v6 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
| - name: Install Hatch | ||
| run: | | ||
| python -m pip install --upgrade hatch | ||
| - name: static analysis | ||
| run: hatch fmt --check | ||
| - name: type checking | ||
| run: hatch run types:check | ||
| - name: Run tests + coverage | ||
| run: hatch run test:cov | ||
| - name: Build distribution | ||
| run: hatch build |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| *~ | ||
| *# | ||
| *.swp | ||
| *.iml | ||
| *.DS_Store | ||
|
|
||
| __pycache__/ | ||
| *.py[cod] | ||
| *$py.class | ||
| *.egg-info/ | ||
|
|
||
| /.coverage | ||
| /.coverage.* | ||
| /.cache | ||
| /.pytest_cache | ||
| /.mypy_cache | ||
|
|
||
| /doc/_apidoc/ | ||
| /build | ||
|
|
||
| .venv | ||
| .venv/ | ||
|
|
||
| .attach_* | ||
|
|
||
| dist/ |
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,17 +1,27 @@ | ||
| ## My Project | ||
| # aws-durable-functions-sdk-python | ||
|
|
||
| TODO: Fill this README out! | ||
| [](https://pypi.org/project/aws-durable-functions-sdk-python) | ||
| [](https://pypi.org/project/aws-durable-functions-sdk-python) | ||
|
|
||
| Be sure to: | ||
| ----- | ||
|
|
||
| * Change the title in this README | ||
| * Edit your repository description on GitHub | ||
| ## Table of Contents | ||
|
|
||
| ## Security | ||
| - [Installation](#installation) | ||
| - [License](#license) | ||
|
|
||
| See [CONTRIBUTING](CONTRIBUTING.md#security-issue-notifications) for more information. | ||
| ## Installation | ||
|
|
||
| ## License | ||
| ```console | ||
| pip install aws-durable-functions-sdk-python | ||
| ``` | ||
|
|
||
| ## Developers | ||
| Please see [CONTRIBUTING.md](CONTRIBUTING.md). It contains the testing guide, sample commands and instructions | ||
| for how to contribute to this package. | ||
|
|
||
| This project is licensed under the Apache-2.0 License. | ||
| tldr; use `hatch` and it will manage virtual envs and dependencies for you, so you don't have to do it manually. | ||
|
|
||
| ## License | ||
|
|
||
| This project is licensed under the [Apache-2.0 License](LICENSE). |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,91 @@ | ||
| [build-system] | ||
| requires = ["hatchling"] | ||
| build-backend = "hatchling.build" | ||
|
|
||
| [project] | ||
| name = "aws-durable-functions-sdk-python" | ||
| dynamic = ["version"] | ||
| description = 'This the Python SDK for AWS Lambda Durable Functions.' | ||
| readme = "README.md" | ||
| requires-python = ">=3.13" | ||
| license = "Apache-2.0" | ||
| keywords = [] | ||
| authors = [ | ||
| { name = "yaythomas", email = "tgaigher@amazon.com" }, | ||
| ] | ||
| classifiers = [ | ||
| "Development Status :: 4 - Beta", | ||
| "Programming Language :: Python", | ||
| "Programming Language :: Python :: 3.13", | ||
| "Programming Language :: Python :: Implementation :: CPython", | ||
| "Programming Language :: Python :: Implementation :: PyPy", | ||
| ] | ||
| dependencies = [ | ||
| "boto3>=1.40.30" | ||
| ] | ||
|
|
||
| [project.urls] | ||
| Documentation = "https://github.com/aws/aws-durable-functions-sdk-python#readme" | ||
| Issues = "https://github.com/aws/aws-durable-functions-sdk-python/issues" | ||
| Source = "https://github.com/aws/aws-durable-functions-sdk-python" | ||
|
|
||
| [tool.hatch.build.targets.sdist] | ||
| packages = ["src/aws_durable_functions_sdk_python"] | ||
|
|
||
| [tool.hatch.build.targets.wheel] | ||
| packages = ["src/aws_durable_functions_sdk_python"] | ||
|
|
||
| [tool.hatch.version] | ||
| path = "src/aws_durable_functions_sdk_python/__about__.py" | ||
|
|
||
| # [tool.hatch.envs.default] | ||
| # dependencies=["pytest"] | ||
|
|
||
| # [tool.hatch.envs.default.scripts] | ||
| # test="pytest" | ||
|
|
||
| [tool.hatch.envs.test] | ||
| dependencies = [ | ||
| "coverage[toml]", | ||
| "pytest", | ||
| "pytest-cov", | ||
| ] | ||
|
|
||
| [tool.hatch.envs.test.scripts] | ||
| cov="pytest --cov-report=term-missing --cov-config=pyproject.toml --cov=src/aws_durable_functions_sdk_python --cov=tests --cov-fail-under=98" | ||
|
|
||
| [tool.hatch.envs.types] | ||
| extra-dependencies = [ | ||
| "mypy>=1.0.0", | ||
| "pytest" | ||
| ] | ||
| [tool.hatch.envs.types.scripts] | ||
| check = "mypy --install-types --non-interactive {args:src/aws_durable_functions_sdk_python tests}" | ||
|
|
||
| [tool.coverage.run] | ||
| source_pkgs = ["aws_durable_functions_sdk_python", "tests"] | ||
| branch = true | ||
| parallel = true | ||
| omit = [ | ||
| "src/aws_durable_functions_sdk_python/__about__.py", | ||
| ] | ||
|
|
||
| [tool.coverage.paths] | ||
| aws_durable_functions_sdk_python = ["src/aws_durable_functions_sdk_python", "*/aws-durable-functions-sdk-python/src/aws_durable_functions_sdk_python"] | ||
| tests = ["tests", "*/aws-durable-functions-sdk-python/tests"] | ||
|
|
||
| [tool.coverage.report] | ||
| exclude_lines = [ | ||
| "no cov", | ||
| "if __name__ == .__main__.:", | ||
| "if TYPE_CHECKING:", | ||
| ] | ||
|
|
||
| [tool.ruff] | ||
| line-length = 88 | ||
|
|
||
| [tool.ruff.lint] | ||
| preview = false | ||
|
|
||
| [tool.ruff.lint.per-file-ignores] | ||
| "tests/**" = ["ARG001", "ARG002", "ARG005", "S101", "PLR2004", "SIM117", "TRY301"] |
Empty file.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| # SPDX-FileCopyrightText: 2025-present Amazon.com, Inc. or its affiliates. | ||
| # | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| __version__ = "0.0.1" | ||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| """AWS Lambda Durable Executions Python SDK.""" |
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TIL: pypa/hatch#551