setup-poetry: Lock Poetry dependencies#84
Open
bkeryan wants to merge 5 commits into
Open
Conversation
bkeryan
commented
Jun 8, 2026
| package-mode = false | ||
|
|
||
| [tool.poetry.dependencies] | ||
| # Recent versions of cryptography do not support 3.9.0 or 3.9.1. |
Collaborator
Author
There was a problem hiding this comment.
With python = "^3.9", Poetry chose to use cryptography 43.0.3 (Oct 2024) for Python <3.14 and PyPy and cryptography 48.0.0 (May 2026) for Python 3.14.
bkeryan
commented
Jun 8, 2026
| description: > | ||
| A Boolean specifying whether to use a lock file when installing Poetry and | ||
| its dependencies. | ||
| default: true |
Collaborator
Author
There was a problem hiding this comment.
TODO: test setting use-lock-file: false
bkeryan
commented
Jun 8, 2026
| exit 1 | ||
| fi | ||
| if [ x"$USE_LOCK_FILE" = x"true" -a ! -d "$GITHUB_ACTION_PATH/versions/$POETRY_VERSION" ]; then | ||
| echo "::error title=Setup Poetry Error::Lock file does not exist for version: '$POETRY_VERSION'" |
Collaborator
Author
There was a problem hiding this comment.
TODO: test this error case
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.
What does this Pull Request accomplish?
Use a
requirements.txtfile to install Poetry with locked dependencies.Why should this Pull Request be merged?
Closes #19
What testing has been done?
PR build