Support uv tool upgrade --python <PYTHON>#6448
Conversation
|
We'll need to document this at https://docs.astral.sh/uv/concepts/tools/ Can you write some details here about the strategy for this? I wonder if we should be upgrading Python versions by default during upgrade (unless the user requested a specific version during install). |
sure, will do
I'm not very familiar with this codebase, could you provide some guidance? |
|
For example, if there's a Python version that's newer than the one the tool is installed with, we reinstall the tool with the latest Python version we can find. We'd probably need to be careful to keep a tool on a managed or system Python e.g. do not switch from one to the other automatically. Does that make sense? One problem is we might not be able to solve in environment, in which case we'd have to bail on it? And we'd have to do this on every attempted upgrade? Eek. |
|
I believe this was covered by #7605. |
Closes #6297