Add PyPI trusted publishing, CI, and package metadata#1
Merged
Conversation
Co-Authored-By: Claude Opus 4.8 <[email protected]>
- publish.yml: build + publish to PyPI on GitHub Release via OIDC trusted publishing (no stored tokens); gates on tag matching pyproject version - ci.yml: ruff check/format + pytest on Python 3.11/3.12/3.13 - pyproject: keywords, classifiers, project URLs for the PyPI page - README: install-from-PyPI instructions and version badge Co-Authored-By: Claude Opus 4.8 <[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.
Sets up automated publishing to PyPI plus supporting CI and metadata.
Changes
publish.yml— builds + publishes to PyPI on a GitHub Release via OIDC Trusted Publishing (no stored tokens). Gates on the release tag matching thepyproject.tomlversion, and runstwine check.ci.yml—ruff check/ruff format --check+pyteston Python 3.11 / 3.12 / 3.13.pyproject.toml—keywords,classifiers, and[project.urls]for the PyPI page.README.md— install-from-PyPI instructions and a PyPI version badge.style:commit — repo-wideruff format(isolated from the functional changes for review).Release flow (after merge)
Create a GitHub Release tagged
vX.Y.Zmatchingpyproject.toml;publish.ymldoes the rest.Requires a one-time PyPI trusted-publisher config (project
hypnos, ownerjoncarter1, repohypnos, workflowpublish.yml, environmentpypi).🤖 Generated with Claude Code