Skip to content

Ensure that all Python downloads do not panic on VersionRequest::from(PythonVersion)#19288

Open
zanieb wants to merge 5 commits intoastral-sh:mainfrom
zaniebot:claude/verify-pr-fix-O3I72
Open

Ensure that all Python downloads do not panic on VersionRequest::from(PythonVersion)#19288
zanieb wants to merge 5 commits intoastral-sh:mainfrom
zaniebot:claude/verify-pr-fix-O3I72

Conversation

@zanieb
Copy link
Copy Markdown
Member

@zanieb zanieb commented May 5, 2026

Avoids future regressions like #19277

claude added 3 commits May 5, 2026 14:27
Iterates the unique Python versions in the embedded download metadata and
asserts each one parses as a `VersionRequest`. The `From<&PythonVersion>
for VersionRequest` conversion in `discovery.rs` `expect()`s this round-trip,
so any failure here causes `uv python upgrade` to panic (issue astral-sh#19277).

Currently fails on `["3.14.5rc1"]` because pre-release version requests
are rejected when the patch component is non-zero — the bug fixed by
PR astral-sh#19286.

https://claude.ai/code/session_01XXorTY1DC7vyjTHgf6rhEV
Comment thread crates/uv-python/src/downloads.rs Outdated
@zanieb zanieb added the testing Internal testing of behavior label May 5, 2026
@zanieb zanieb marked this pull request as ready for review May 5, 2026 17:02
@zanieb zanieb enabled auto-merge (squash) May 5, 2026 17:02
auto-merge was automatically disabled May 5, 2026 17:03

Head branch was pushed to by a user without write access

@zanieb zanieb enabled auto-merge (squash) May 5, 2026 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

testing Internal testing of behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants