Skip to content

List specifier used to install a tool #6747

@paidhi

Description

@paidhi

Currently (uv v0.3.5) if a constraint is used with uv tool install the version/restriction is pinned and subsequent uv tool upgrade commands might not update to a newer release. E.g. `uv tool install "pyinfra<3.0".

Over time I imagine it's easy to forget that a tool was installed this way. And as a result one might start wondering why e.g. uv tool upgrade --all misses newer versions for some tools.

I think it would help if the output from uv tool list shows what specifier was used to install a tool (which is stored in $(uv tool dir)/${package_name}/uv-receipt.toml).

Example (mockup):

$ uv tool install "pyinfra<3.0"

$ uv tool list
pyinfra v2.9.2 (specifier: "<3.0")
- pyinfra

Metadata

Metadata

Assignees

No one assigned

    Labels

    cliRelated to the command line interfacegood first issueGood for newcomershelp wantedContribution especially encouraged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions