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 version command #7609

Closed
mardiros opened this issue Sep 21, 2024 · 2 comments
Closed

uv version command #7609

mardiros opened this issue Sep 21, 2024 · 2 comments
Labels
duplicate This issue or pull request already exists

Comments

@mardiros
Copy link

mardiros commented Sep 21, 2024

Hi uv team,

I really don't know if an issue is the right place for what I have to say, but actually,
I did not find something more appropriate at the moment.

uv provides command uv --version (or -V) for short and also a uv version subcommand.

that uv version command is redundant and does not work as expected (to me).

Since I am trying to migrate one project from poetry to uv, and a poetry early adopter,
I may be biased.

I expect that uv version should be here to manage the pyproject.toml version, and,
I don't find any way to deal with my package version using uv.

I would like to have something like this:

$ uv version --help
Display the version of the project or increment it for release purposes.

Usage: uv version [OPTIONS] <increment>

Options:
      --short Display only the version number

Increments:
  major      Increment major version of the project (foobar 0.1.0 -> foobar 1.0.0)
  minor      Increment minor version of the project (foobar 0.1.0 -> foobar 0.2.0)
  patch      Increment patch version of the project (foobar 0.1.0 -> foobar 0.1.1)
  premajor   Increment major version and add a pre-release identifier (foobar 0.1.0 -> foobar 1.0.0a0)
  preminor   Increment minor version and add a pre-release identifier (foobar 0.1.0 -> foobar 0.2.0a0)
  prepatch   Increment patch version and add a pre-release identifier (foobar 0.1.0 -> foobar 0.1.1a0)

The version manipulation can be used at scripting, for example, coming from my personal projects,
I use a Jusfile with those simple rules:

release major_minor_patch: test gh-pages && changelog
    poetry version {{major_minor_patch}}
    poetry install

publish:
    git commit -am "Release $(poetry version -s)"
    poetry build
    poetry publish
    git push
    git tag "$(poetry version -s)"
    git push origin "$(poetry version -s)"
@charliermarsh
Copy link
Member

Are you looking for #6298? Might be the same.

@charliermarsh charliermarsh added the duplicate This issue or pull request already exists label Sep 21, 2024
@mardiros
Copy link
Author

Completly this !

I am confused.
It seems like I'm bad at searching in the issues.

@zanieb zanieb closed this as not planned Won't fix, can't repro, duplicate, stale Sep 21, 2024
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

3 participants