Skip to content

feat(python): add --all-variants flag to python list#18881

Open
renezander030 wants to merge 2 commits intoastral-sh:mainfrom
renezander030:feat/15983-all-variants
Open

feat(python): add --all-variants flag to python list#18881
renezander030 wants to merge 2 commits intoastral-sh:mainfrom
renezander030:feat/15983-all-variants

Conversation

@renezander030
Copy link
Copy Markdown

Summary

  • Add --all-variants CLI flag to uv python list that includes debug builds in the output (hidden by default)
  • Also show debug builds when explicitly requested via version specifier (e.g., uv python list 3.13+debug)
  • Follows the same pattern as existing --all-platforms, --all-arches, and --all-versions flags

Fixes #15983

Test plan

  • uv python list -- debug builds remain hidden (no behavior change)
  • uv python list --all-variants -- debug builds are included in the output
  • uv python list 3.13+debug -- debug builds for 3.13 are shown without needing --all-variants

Add `--all-variants` option to `uv python list` that shows debug builds
which are hidden by default. Debug builds are also shown when explicitly
requested via the version specifier (e.g., `uv python list 3.13+debug`).

Fixes astral-sh#15983
Extract allows_debug() check before base_download_request is moved
into the match arms, fixing E0382 borrow checker error.
@zanieb
Copy link
Copy Markdown
Member

zanieb commented Apr 7, 2026

Can you add a test case?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add --all-variants option to show debug builds in uv python list

2 participants