-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Support getting the project version (like Rye and poetry) from the pyproject.toml #7785
Comments
I agree that this would be really useful. A workaround to get the version could be:
|
Thanks, we are already using it in our code, for now (till uv will support it) I will use your workaround in our build action. Thanks |
Duplicate of #6298 |
We're interested, but need to design the interface. |
Note |
For anyone else trying this and getting: Use a later tag from https://github.com/repo-helper/pyproject-parser/tags
|
Hi,
In both poetry and Rye there is an option to run
poetry version
orrye version
and get the project version from the pyproject.toml.Here is a link to the rye docs:
https://rye.astral.sh/guide/commands/version/
Here is a link to the poetry docs:
https://python-poetry.org/docs/cli/#version
for example, for a project named my-little-helper with a version 2.0.22 the command will emit:
my-little-helper 2.0.22
In poetry there is also an option to add the --short option and the result will be
2.0.22
The motivation for that is to be able to extract the version for automatic tagging a successful package build in a github action.
But I can think of other useful scenarios.
Thanks
The text was updated successfully, but these errors were encountered: