-
Notifications
You must be signed in to change notification settings - Fork 23
Use trusted publishing #456
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
Show all changes
14 commits
Select commit
Hold shift + click to select a range
9fb9740
Add pytest-env
ewjoachim 7ed6368
Make `pytest` work by default
ewjoachim b620068
Rewrite CI
ewjoachim f281d61
Add note in changelog: it won't be updated anymore
ewjoachim 316447f
Dynamic versioning
ewjoachim c27a3b5
Drop py3.7, 3.8, 3.9, and pypy3.9, add py3.14 pypyp3.11
ewjoachim 9a7e8bb
General upgrade !
ewjoachim 317e1c9
Ruff
ewjoachim c485b73
nopte
ewjoachim ffd118e
Remove usage of sure
ewjoachim 54701fa
Remove sure
ewjoachim 69aae2e
Disable setproctitle in tests, it currently crashes macos.
ewjoachim 04047ff
Add name for environment
ewjoachim bfebcd9
Address PR review: robust __version__ and drop stale py3.7 TODOs
ewjoachim 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
This file was deleted.
Oops, something went wrong.
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
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,36 +1,3 @@ | ||
| #!/bin/bash | ||
|
|
||
| export PYTHONDONTWRITEBYTECODE=1 | ||
|
|
||
| # The AWS_DEFAULT_REGION parameter determines the region used for SWF | ||
| # Leaving it to a value different than "us-east-1" would break moto, | ||
| # because moto.swf only mocks calls to us-east-1 region for now. | ||
| unset AWS_DEFAULT_REGION | ||
|
|
||
| # Disable AWS credentials | ||
| # NB: we set them to wrong values so boto believes they're here, so it | ||
| # issues integration requests later caught by VCR. For more information | ||
| # see tests/integration/README.md | ||
| export AWS_ACCESS_KEY_ID=1234 | ||
| export AWS_SECRET_ACCESS_KEY=1234 | ||
|
|
||
| # Enable various test optimizations | ||
| export SIMPLEFLOW_ENV=test | ||
| export SIMPLEFLOW_CLEANUP_PROCESSES=yes | ||
|
|
||
| # Simple variable to control the number of connection retries | ||
| export SWF_CONNECTION_RETRIES=1 | ||
|
|
||
| # Don't run real SWF requests if a cassette doesn't match | ||
| # See tests/integration/README.md for instructions about cassettes updating | ||
| export SIMPLEFLOW_VCR_RECORD_MODE=none | ||
|
|
||
| # Disable jumbo fields | ||
| export SIMPLEFLOW_JUMBO_FIELDS_BUCKET="" | ||
|
|
||
| # Prevent CI from overriding boto configuration | ||
| export BOTO_CONFIG=/dev/null | ||
|
|
||
| PYTHON=${PYTHON:-python} | ||
| # run tests | ||
| pytest --no-success-flaky-report -q $PYTEST_OPTIONS "$@" | ||
| exec pytest "$@" |
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,10 +1,16 @@ | ||
| from __future__ import annotations | ||
|
|
||
| from .activity import Activity # NOQA | ||
| from .runtime import logger # NOQA | ||
| from .signal import WaitForSignal # NOQA | ||
| from .workflow import Workflow # NOQA | ||
| from importlib.metadata import PackageNotFoundError, version | ||
|
|
||
| __version__ = "0.35.0" | ||
| __author__ = "Greg Leclercq" | ||
| from .activity import Activity as Activity | ||
| from .runtime import logger as logger | ||
| from .signal import WaitForSignal as WaitForSignal | ||
| from .workflow import Workflow as Workflow | ||
|
|
||
| try: | ||
| __version__ = version("simpleflow") | ||
| except PackageNotFoundError: | ||
| # Running from a source checkout without the distribution installed. | ||
| __version__ = "unknown" | ||
| __author__ = "Greg Leclercq, Yves Bastide" | ||
| __license__ = "MIT" |
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
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
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
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.
Keeping this global on purpose: setproctitle segfaults in forked children on macOS (py-setproctitle#165) and gating a static pytest env list by platform is awkward. The only lost coverage is the process-title string in
set_process_name, which is minor.