Add PyPI publishing for the Python package#4
Merged
Merged
Conversation
Pushing a vX.Y.Z tag now builds and publishes the client_signals Python package to PyPI via trusted publishing (OIDC, no tokens). Builds from the python/ subdirectory, stamps the tag version into pyproject.toml (which ships a 0.0.0 placeholder), and runs the unittest suite as a gate. Final-release tags only; prerelease tags are excluded (non-PEP 440 format).
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.
Summary
Automates publishing the
client_signalsPython package to PyPI, so downstream projects (sprites-py, and thus sprites-adk) can depend on a released package instead of a git ref.Adds
.github/workflows/publish-python.yml: on avX.Y.Ztag it builds from thepython/subdirectory, stamps the tag's version intopyproject.toml(which ships a0.0.0placeholder), runs theunittestsuite as a gate, and publishes via PyPI trusted publishing (OIDC — no API tokens). Complements the existingrelease.yml(GitHub release) without touching it.Details
v[0-9]+.[0-9]+.[0-9]+. Prerelease tags (vX.Y.Z-pre-Nfrombump_version.sh prerel) are intentionally excluded, since that suffix isn't PEP 440 and PyPI would reject it. (Thego/vX.Y.Zmodule tags don't match either.)python/(defaults.run.working-directory), publishespython/dist/.Verification
python -m unittest→ 8 passed.v0.4.1):python -m buildproducedclient_signals-0.4.1wheel+sdist,twine checkPASSED on both;pyproject.tomlrestored to the0.0.0placeholder (not committed).