Skip to content
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

uv should have commands to manage and/or display the version of the current project #8755

Closed
tconbeer opened this issue Nov 1, 2024 · 3 comments
Labels
duplicate This issue or pull request already exists

Comments

@tconbeer
Copy link

tconbeer commented Nov 1, 2024

In CD workflows, it's handy to have a tool that can read and write the version of the project in its pyproject.toml file.

For example, poetry version (with no arguments) prints the project's version (in one of a few formats), and poetry version x.y.z updates the pyproject.toml file and sets tool.poetry.version = x.y.z.

I use both of these features in Harlequin's CD workflows, first to set the version from the release branch name, and then to create a GitHub release after the package is published. I would love to use uv instead.

(Poetry also includes a feature to bump the version based on a "bump rule" like minor, but I don't use that feature personally).

Today uv version and uv --version both display uv's version, not the project version.

This feature is similar to #5975 , and might be a subcommand of uv info or uv show (or uv project): uv info version --short etc. For CD use cases, it's important that the version number is easy to extract from the output.

@zanieb
Copy link
Member

zanieb commented Nov 1, 2024

This is a duplicate of #6298

@zanieb zanieb closed this as not planned Won't fix, can't repro, duplicate, stale Nov 1, 2024
@zanieb zanieb added the duplicate This issue or pull request already exists label Nov 1, 2024
@zanieb
Copy link
Member

zanieb commented Nov 1, 2024

In brief, we want to support this.

@tconbeer
Copy link
Author

tconbeer commented Nov 2, 2024

Sorry about the dupe. I searched and couldn't find it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants