Add uv python list --all-arches (#9782)

With #9781 this becomes even more compelling. This is generally useful
as well.

e.g.,

```
❯ cargo run -- python list --all-arches
cpython-3.13.1+freethreaded-macos-x86_64-none     <download available>
cpython-3.13.1-macos-x86_64-none                  <download available>
cpython-3.13.1+freethreaded-macos-aarch64-none    <download available>
cpython-3.13.1-macos-aarch64-none                 <download available>
cpython-3.13.0-macos-aarch64-none                 /Users/zb/.local/bin/python3.13 -> /Users/zb/.local/share/uv/python/cpython-3.13.0-macos-aarch64-none/bin/python3.13
cpython-3.13.0-macos-aarch64-none                 /Users/zb/.local/bin/python3 -> /Users/zb/.local/share/uv/python/cpython-3.13.0-macos-aarch64-none/bin/python3.13
cpython-3.13.0-macos-aarch64-none                 /Users/zb/.local/bin/python -> /Users/zb/.local/share/uv/python/cpython-3.13.0-macos-aarch64-none/bin/python3.13
cpython-3.13.0-macos-aarch64-none                 /Users/zb/.local/share/uv/python/cpython-3.13.0-macos-aarch64-none/bin/python3.13
cpython-3.12.8-macos-x86_64-none                  <download available>
cpython-3.12.8-macos-aarch64-none                 <download available>
...
```
This commit is contained in:
Zanie Blue 2024-12-10 14:02:41 -06:00 committed by GitHub
parent 4a21daff49
commit 6523d90da1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 25 additions and 2 deletions

View file

@ -4222,6 +4222,12 @@ pub struct PythonListArgs {
#[arg(long)]
pub all_platforms: bool,
/// List Python downloads for all architectures.
///
/// By default, only downloads for the current architecture are shown.
#[arg(long, alias = "all_architectures")]
pub all_arches: bool,
/// Only show installed Python versions, exclude available downloads.
///
/// By default, available downloads for the current platform are shown.