Skip to content

Format Python version ranges in uv - #21648

Merged
konstin merged 3 commits into
codex/self-dependency-diagnosticsfrom
codex/upstream-version-ranges
Oct 21, 2026
Merged

konstin merged 3 commits into
codex/self-dependency-diagnosticsfrom
codex/upstream-version-ranges

Conversation

@konstin

@konstin konstin commented Sep 13, 2026 •

Copy link
Copy Markdown
Member

By formatting version ranges in uv itself, we don't need the astral-version-ranges fork anymore.

Companion to astral-sh/pubgrub#81.

Stacked on #21845.

@konstin
konstin marked this pull request as ready for review September 13, 2026 18:12
@konstin konstin added the internal A refactor or improvement that is not user-facing label Sep 13, 2026
@astral-sh-bot

This comment has been minimized.

konstin added a commit to astral-sh/pubgrub that referenced this pull request Sep 19, 2026
By using astral-sh/uv#21648, we can match
upstream version ranges.
konstin added a commit to astral-sh/pubgrub that referenced this pull request Sep 19, 2026
By using astral-sh/uv#21648, we can match
upstream version ranges.
konstin added a commit to astral-sh/pubgrub that referenced this pull request Sep 19, 2026
By using astral-sh/uv#21648, we can match
upstream version ranges.
@konstin
konstin force-pushed the codex/upstream-version-ranges branch from 5cee8f6 to 5e619e3 Compare September 20, 2026 14:04
@konstin
konstin changed the base branch from main to codex/self-dependency-diagnostics September 20, 2026 14:04
@konstin
konstin added this pull request to stack #21862 September 20, 2026 15:50
@konstin
konstin force-pushed the codex/upstream-version-ranges branch from 5e619e3 to 599506d Compare October 12, 2026 08:52
@codspeed

codspeed Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Merging this PR will not alter performance

2 warnings

⚠️ Unable to measure the execution of 1 benchmark

This benchmark measured no execution time, so its result is not comparable and counts as unchanged. This usually happens when the compiler removes the code under test.

Prevent compiler optimizations

See affected benchmarks

⚠️ 8 benchmarks are dominated by system calls

System calls cannot be simulated consistently and are left out of the measure. The reported value understates the real cost. Switch to the Walltime instrument to measure them.

Learn more about system calls

See affected benchmarks

✅ 119 untouched benchmarks
⏩ 54 skipped benchmarks1


Comparing codex/upstream-version-ranges (3aa28c1) with codex/self-dependency-diagnostics (5f2fd37)

Open in CodSpeed

Footnotes

  1. 54 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. ↩

@konstin
konstin force-pushed the codex/upstream-version-ranges branch from 599506d to cb2615f Compare October 12, 2026 09:23
@konstin
konstin force-pushed the codex/upstream-version-ranges branch from cb2615f to b5a46e8 Compare October 12, 2026 09:28
konstin added a commit to astral-sh/pubgrub that referenced this pull request Oct 17, 2026
By using astral-sh/uv#21648, we can match
upstream version ranges.
@konstin
konstin force-pushed the codex/upstream-version-ranges branch from b5a46e8 to 3aa28c1 Compare October 21, 2026 09:48
@konstin
konstin removed this pull request from stack #21862 October 21, 2026 10:58
@konstin
konstin added this pull request to stack #22791 October 21, 2026 10:58
@konstin
konstin merged commit 7d68222 into main Oct 21, 2026
210 of 213 checks passed
@konstin
konstin deleted the codex/upstream-version-ranges branch October 21, 2026 11:20
konstin added a commit that referenced this pull request Oct 21, 2026
Avoid calling into PubGrub's implementation details by using dedicated
methods. Match `Term::Positive` directly to borrow the version range
without requiring a public `Term::unwrap_positive`.

Paired with astral-sh/pubgrub#80 and
astral-sh/pubgrub#86. Use the released
astral-pubgrub 0.7.0 and astral-version-ranges 0.2.3, with the unstable
state API enabled for uv's incremental resolver.

Stacked on #21648.

This branch was previously deployed

1 inactive deployment
automations — 3aa28c1c Deployed Oct 21, 2026 by konstin via review / security review #52038
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant