Skip to content

fix(release): accept the dist/.gitignore marker uv build writes - #323

Merged
abrichr merged 1 commit into
mainfrom
claude/release-dist-gitignore
Sep 1, 2026
Merged

fix(release): accept the dist/.gitignore marker uv build writes#323
abrichr merged 1 commit into
mainfrom
claude/release-dist-gitignore

Conversation

@abrichr

@abrichr abrichr commented Sep 1, 2026

Copy link
Copy Markdown
Member

uv build writes a one-line * .gitignore into a dist/ directory it creates, so build output never gets committed. scripts/verify_pypi_release.py (added in #303) refuses any file in dist/ that is not a wheel or an sdist. The two met for the first time on the v0.95.0 tag push: run 33571911895 built the tag, passed the source-boundary gate, and stopped at unexpected local distribution: .gitignore before anything reached PyPI. The tag exists; 0.95.0 is not on PyPI and never will be, since the fix has to live in the tagged tree.

What changes: _local_artifacts skips a file named .gitignore whose content is exactly *. Anything else hidden in dist/ is still refused, and two tests pin both halves.

What a reviewer should check: that skipping the marker cannot hide a real artifact. It cannot, because the skip is keyed on name and full content, and the wheel and sdist are still required by name.

After this lands the proposal bot will open chore(release): prepare 0.95.1; that is the version the Prime Intellect environment in the next PR pins.

Opened by an agent session, not the founder.
🤖 Generated with Claude Code

uv build writes a one-line `*` .gitignore into a dist/ directory it
creates. scripts/verify_pypi_release.py, added in #303, refused any
non-distribution file in dist/, so the first tag-push release after #303
(v0.95.0, run 33571911895) stopped at 'unexpected local distribution:
.gitignore' before publishing. The marker with exactly that content is
skipped; any other hidden file in dist/ is still refused.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@abrichr
abrichr merged commit b5c3cdf into main Sep 1, 2026
1 check passed
@abrichr
abrichr deleted the claude/release-dist-gitignore branch September 1, 2026 23:47
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.

1 participant