Repository navigation
chore: move the uv_build range onto the 0.12 line - #988
Merged
Merged
Conversation
The backend range has been `>=0.11.14,<0.12` since #546, so every build and every `uv sync` warns that it doesn't contain the uv running it. Move it to `>=0.12,<0.13`, and add a test coupling it to the `uv_version` the weekly pin sweep already moves, so it can't drift a whole minor again.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
generator/pyproject.tomldeclaresbuild-system.requires = ["uv_build>=0.11.14,<0.12"], unchanged since the backend was switched in #546. uv is now on 0.12.x, so every build prints:It's a warning, not an error, so nothing has ever failed on it — the 0.1.17 wheel built fine. But it fires on
uv build --package tendinpypi-release.yamland on everyuv syncthat builds the workspace member, which is every fresh dev environment and every CI job, and it means the released wheel is produced by a backend a minor behind the uv driving it.The
running-tendskill's pin table already names this exact case — "its range must contain the uv doing the build; a stale one only warns duringuv build, so only this sweep catches it" — and the sweep is weekly, so it stayed stale for the whole 0.12 line.Fix
Move the range to
>=0.12,<0.13. The floor is the minor rather than a specific patch so the whole 0.12 line is admitted — the release job takes whateversetup-uv@v9installs (0.12.5 today) and a developer may be on an earlier 0.12.x.Regression test
generator/tests/test_repo_pins.pyasserts the range contains theuv_versionpinned inclaude/action.yaml. That input is what the weekly sweep moves to the latest uv, so coupling the two makes the sweep carry the build backend along instead of leaving it to be noticed in build noise. Both operands are in-repo, so the test can only go red on a deliberate bump — never on the day astral publishes a release. It's the same shape astest_pinned_mitmproxy_matches_the_action, which guards the other version this repo names twice.Verified it fails on the old pin and passes on the new one:
Before and after
packagingis added to the root dev group: the test asks whether a version satisfies a specifier, andpackagingonly arrived transitively before — the same reasonruamel.yamlis declared there.Full suite: 555 passed.
pre-commitclean on the changed files.