Specify the version of Poetry itself in a version-controlled project? #10251
Unanswered
AndreLaranjeira
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello.
I'm fairly new to using Poetry and I was using it to manage dependencies and their versions for a Python software project that is version-controlled with Git/GitHub. However, the most recent major version of Poetry introduced a breaking change in the
export
command, which I previously used inside of a GitHub workflow to deploy the project. As such, my older version of Poetry can still run the command locally, but the latest version of Poetry used by the GitHub workflow cannot. I cannot modify thepyproject.toml
to satisfy the latest version of Poetry as that creates an error for my local version of Poetry and I cannot update my local version of Poetry due to OS reasons.To avoid this problem (and similar problems that might arise in the future), I wanted to know if there is a way to specify the version of Poetry to be used in my project repository by the GitHub workflow that installs Poetry. I know that the version of Python can be specified in a variety of ways (such as a
.python-version
file, which is what I currently use). Is there a similar way of doing this for Poetry so that all developers and GitHub workflows are on the same page as to what version of Poetry to use?I understand that I can just hard-code the Poetry installation command on the GitHub workflow to install an older version of Poetry with pipx/pip, but I was wondering if there is a better way of storing this information.
Beta Was this translation helpful? Give feedback.
All reactions