Version/metadata guard between pyproject and the published py_wheel - #5
Merged
Conversation
scripts/check_client_version.py (stdlib-only) enforces three invariants: client/pyproject.toml and the py_wheel version in client/BUILD.bazel agree; on tag builds the version equals the tag (gating the PyPI publish and release upload — the wheel job now needs version-check); on all other builds the version is <= the latest v* tag, so a bumped version without a matching release fails CI instead of silently drifting. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…ject The CI-published wheel now carries the README as its long description (markdown), the MIT license, and project URLs — so the PyPI page isn't bare. check_client_version.py grows from a version check into a metadata sync check: description/summary, requires-python, license, and Homepage must all agree between pyproject.toml (pip path) and the py_wheel target (published path). The client README's sigbot link is absolute now, since it renders on PyPI. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.
Adds a CI version-check job (scripts/check_client_version.py, stdlib-only): the client version and shared metadata (summary, requires-python, license, Homepage) must agree between pyproject.toml
and the py_wheel target; on tag builds the version must equal the tag (now gating the wheel/PyPI job); on other builds it must be <= the latest release tag. Also enriches the published wheel's metadata
(README long description, MIT license, project URLs) so the PyPI page isn't bare.
🤖 Generated with Claude Code