Skip to content

Construct Python versions from installation key components - #22558

Merged
astral-automations-bot[bot] merged 1 commit into
mainfrom
zb/opportunity-03-04-python-version-components
Oct 14, 2026
Merged

astral-automations-bot[bot] merged 1 commit into
mainfrom
zb/opportunity-03-04-python-version-components

Conversation

@astral-automations-bot

Copy link
Copy Markdown
Contributor

Python installation keys already contain numeric release components and prerelease metadata, but constructing their version formats and parses those fields again. Build the version directly and keep requested minor versions as numeric pairs, while retaining the canonical version text used by markers and diagnostics.

@astral-automations-bot astral-automations-bot Bot added internal A refactor or improvement that is not user-facing performance labels Oct 14, 2026
@astral-automations-bot
astral-automations-bot Bot enabled auto-merge (squash) October 14, 2026 17:45
@astral-automations-bot
astral-automations-bot Bot merged commit 5996011 into main Oct 14, 2026
62 of 63 checks passed
@astral-automations-bot
astral-automations-bot Bot deleted the zb/opportunity-03-04-python-version-components branch October 14, 2026 17:52
lcheylus pushed a commit to lcheylus/uv that referenced this pull request Oct 14, 2026
…#22558)

Python installation keys already contain numeric release components and
prerelease metadata, but constructing their version formats and parses
those fields again. Build the version directly and keep requested minor
versions as numeric pairs, while retaining the canonical version text
used by markers and diagnostics.

Co-authored-by: zaniebot <[email protected]>
@codspeed

codspeed Bot commented Oct 14, 2026

Copy link
Copy Markdown

Merging this PR will improve performance by 14.1%

⚠️ 8 benchmarks spent significant time in system calls

System calls cannot be consistently instrumented, so they are not included in the measure, which understates the real cost. Please switch to the Walltime instrument to accurately measure system calls.

Measurement and system calls

⚡ 3 improved benchmarks
✅ 40 untouched benchmarks
⏩ 80 skipped benchmarks1

Performance Changes

Benchmark BASE HEAD Efficiency
⚡ load_python_download_catalog 448.8 ms 348.9 ms +28.64%
⚡ ⚠️ discover_workspace_from_all_members 148.8 ms 136.4 ms +9.09%
⚡ ⚠️ discover_workspace_from_all_members_with_excludes 148.2 ms 140 ms +5.87%

Tip

Curious why performance improved? Comment @codspeedbot explain why performance improved on this PR, or directly use the CodSpeed MCP with your agent.


Comparing zb/opportunity-03-04-python-version-components (4b320a4) with main (1310268)2

Open in CodSpeed

Footnotes

  1. 80 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

  2. No successful run was found on main (725b74b) during the generation of this report, so 1310268 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩

This branch was previously deployed

1 inactive deployment
automations — 4b320a48 Deployed Oct 14, 2026 by astral-automations-bot[bot] via review / security review #50978
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal A refactor or improvement that is not user-facing performance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants