astral-sh / uv

An extremely fast Python package and project manager, written in Rust.
https://docs.astral.sh/uv
Apache License 2.0
20.73k stars 613 forks source link

Allow updating `.python-version` and `.python-versions` files to latest patch version #7569

Open zanieb opened 3 days ago

zanieb commented 3 days ago

e.g. we're out of date here in uv but it seems like a pain to figure out what the latest patch version is for each minor release. A command should do this for me :)

tfsingh commented 12 hours ago

Hey, I'm working on this here (still need to clean up code/docs, but I think the scaffolding is there), is there any particular source of truth/API you'd prefer I use to determine the latest patch version for each minor release? Thanks!

zanieb commented 5 hours ago

Cool! I think we'd use the latest patch version we can find in our downloads unless downloads are disabled, then we might need to use the latest version we can find on the system?