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

FR: Add support for uv tool upgrade --python <PYTHON> #6297

Closed
weihenglim opened this issue Aug 21, 2024 · 2 comments · Fixed by #7605
Closed

FR: Add support for uv tool upgrade --python <PYTHON> #6297

weihenglim opened this issue Aug 21, 2024 · 2 comments · Fixed by #7605
Assignees
Labels
uv tool Related to the uv tool interface

Comments

@weihenglim
Copy link

It would be useful to have a way to reinstall/upgrade all installed tools to the latest Python version.

Currently we are able to reinstall all tools via uv tool upgrade --all --reinstall but are unable to specify the Python version. The workaround is to perform uv tool install --python <PYTHON> <PACKAGE> for all tools individually.

As an aside, it would also be nice if uv tool list displays the Python version that was used to install the tool (similar to how pipx list behaves)

@zanieb zanieb self-assigned this Aug 21, 2024
@zanieb zanieb added the uv tool Related to the uv tool interface label Aug 21, 2024
@zanieb
Copy link
Member

zanieb commented Aug 21, 2024

Upgrading Python versions makes a lot of sense.

Why is the version important for you to see in uv tool list? Aren't most tools Python version agnostic?

@weihenglim
Copy link
Author

Why is the version important for you to see in uv tool list? Aren't most tools Python version agnostic?

Personally for me it just makes it easier to spot, at a glance, the tools that are stuck on an older version due to being installed by an old Python interpreter.

For example if I run uv tool install yt-dlp with a system Python 3.7, uv tool list will show the installed package as yt-dlp v2023.11.16. After upgrading the system Python to 3.12, performing a uv tool upgrade yt-dlp will result in a Nothing to upgrade message even though a newer version (v2024.8.6) is available for Python 3.12.

Hope that makes sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
uv tool Related to the uv tool interface
Projects
None yet
2 participants