Skip to content

chore: move the uv_build range onto the 0.12 line - #988

Merged
max-sixty merged 1 commit into
mainfrom
chore/uv-build-range
Aug 15, 2026
Merged

max-sixty merged 1 commit into
mainfrom
chore/uv-build-range

Conversation

@tend-agent

Copy link
Copy Markdown
Collaborator

Problem

generator/pyproject.toml declares build-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:

warning: `build_system.requires = ["uv-build>=0.11.14,<0.12"]` does not contain the current uv version 0.12.5

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 tend in pypi-release.yaml and on every uv sync that 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-tend skill's pin table already names this exact case — "its range must contain the uv doing the build; a stale one only warns during uv 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 whatever setup-uv@v9 installs (0.12.5 today) and a developer may be on an earlier 0.12.x.

Regression test

generator/tests/test_repo_pins.py asserts the range contains the uv_version pinned in claude/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 as test_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
$ uv build --package tend                       # before
warning: `build_system.requires = ["uv-build>=0.11.14,<0.12"]` does not contain the current uv version 0.12.5

$ uv build --package tend                       # after
Successfully built dist/tend-0.1.17.tar.gz      # no warning

$ uv run pytest generator/tests/test_repo_pins.py   # with the old range restored
FAILED test_uv_build_range_admits_the_pinned_uv - AssertionError: build-system.requires
pins `uv_build<0.12,>=0.11.14`, which does not contain the uv this repo pins (0.12.1)

packaging is added to the root dev group: the test asks whether a version satisfies a specifier, and packaging only arrived transitively before — the same reason ruamel.yaml is declared there.

Full suite: 555 passed. pre-commit clean on the changed files.

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.
@max-sixty
max-sixty merged commit 85cb982 into main Aug 15, 2026
6 checks passed
@max-sixty
max-sixty deleted the chore/uv-build-range branch August 15, 2026 14:55
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.

2 participants