Skip to content

[feat] uv python upgrade or uv python install --upgrade #7892

@baggiponte

Description

@baggiponte

Ciao! New python versions are coming out and I wonder if uv can behave a bit more like mise or other devtools in that it can upgrade the python versions. For example, @hynek teased a video about how he uses MOPup to keep his Python versions updated and it would be fun to ruin his plans once again.

Jokes aside, I think it might be useful to either have a way to see if local python versions are outdated (uv python list --outdated?) and possibly a uv python install --upgrade. For example, I think uv python install --upgrade 3.12 automatically downloads the 3.12 release from yesterday (3.12.7 was released) and, if I have an older one, removes that (since the user is explicitly asking for an update).

Currently, uv python install 3.12 does not download anything if there is a 3.12 version already installed on the machine.

This can be a bit of a pain to implement in that it requires all tools installed with a specific python version to a. be reinstalled or b. be modified to point to the new python path.

I searched the issue tab but could not find a similar issue. Feel free to close.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions