Repository navigation
Conversation
uv-build's defaults match the existing src-layout, so the only changes are the [build-system] table and dropping the hatch-specific [tool.hatch.build.targets.wheel] block. Non-Python files under src/tend/ are bundled in the wheel by default. Co-Authored-By: Claude <[email protected]>
tend-agent
reviewed
May 16, 2026
tend-agent
left a comment
Collaborator
There was a problem hiding this comment.
The build backend swap itself looks good: uv build --directory generator --wheel succeeds on the merge commit, and the wheel includes tend/templates/*.yaml.j2.
One consistency issue to fix before landing: CLAUDE.md still describes generator/ as a hatchling build and says the generator uses hatchling under the “Key details” section. After this PR, that guidance will be false for future bot/dev sessions. Please update those references to uv_build while changing the backend.
Generator switched build backends in the prior commit; this updates the two stale references in CLAUDE.md so dev/bot sessions don't get told the wrong thing. Co-Authored-By: Claude <[email protected]>
tend-agent
approved these changes
May 16, 2026
max-sixty
added a commit
that referenced
this pull request
May 17, 2026
## Summary Release 0.0.24. 11 PRs since 0.0.23: - #545 Rewrite the workflow generator on Jinja2 templates - #546 generator: switch build backend to uv_build - #544 generator: route install-test through `_apply_extras` - #535 install-tend: unify on the chain model (admin-gated refs + env policy pin) - #537 review-reviewers: migrate to the Codex harness - #551 debug-tend-run: support Codex session logs; instruct Codex to read skills in full - #552 review: stop re-posting "prior thread still applies" on every push - #547 fix(stats): stop blacking out the section on transient worker outage - #548 site: simplify "currently tending" to a prose repo list - #549 site: refresh "currently tending" on a 30s timer - #550 site: refresh Stats and Activity on a timer #551 and #552 are the reason for cutting now: together they stop the Codex harness re-posting near-identical "the prior thread still applies" reviews on every push. The behavior is release-gated, so it only reaches tend's own dogfooded workflows once 0.0.24 is published and the nightly regen repins the action ref. No new breaking changes since 0.0.23 (the `TEND_BOT_TOKEN` rename shipped in 0.0.23). ## Test plan - [ ] CI green (test, test-worker, lint) - [ ] After merge: tag `0.0.24`, PyPI publish (`pypi-release.yaml` on the tag push), `uvx [email protected] --help` works - [ ] Regenerate tend's own workflows to `@0.0.24` (separate `chore: regenerate` PR, after the tag exists) Co-authored-by: Claude <[email protected]>
max-sixty
pushed a commit
that referenced
this pull request
Aug 15, 2026
## 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: <details><summary>Before and after</summary> ``` $ 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. </details> Co-authored-by: tend-agent <[email protected]>
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.
Switch the generator to the uv-native PEP 517 backend. uv-build's defaults (
module-root = "src", module name from the normalized project name) match the existing layout, so no[tool.uv.build-backend]block is needed and the hatch-specific[tool.hatch.build.targets.wheel]goes away.Verified
uv build --wheelproduces the same sixtend/*.pymodules,pytestis green (242 passed), and a sentinelsrc/tend/_sentinel.txtshipped in the wheel — so non-Python data files undersrc/tend/are bundled by default. That matters for the templating-evaluation branch (#545), which addssrc/tend/templates/*.yaml.j2; the two PRs will conflict onpyproject.tomlat merge time, whichever lands second rebases.