Skip to content

Add PyPI trusted publishing, CI, and package metadata#1

Merged
joncarter1 merged 2 commits into
mainfrom
setup-pypi-publishing
Jun 23, 2026
Merged

Add PyPI trusted publishing, CI, and package metadata#1
joncarter1 merged 2 commits into
mainfrom
setup-pypi-publishing

Conversation

@joncarter1

Copy link
Copy Markdown
Owner

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 the pyproject.toml version, and runs twine check.
  • ci.ymlruff check / ruff format --check + pytest on Python 3.11 / 3.12 / 3.13.
  • pyproject.tomlkeywords, classifiers, and [project.urls] for the PyPI page.
  • README.md — install-from-PyPI instructions and a PyPI version badge.
  • style: commit — repo-wide ruff format (isolated from the functional changes for review).

Release flow (after merge)

Create a GitHub Release tagged vX.Y.Z matching pyproject.toml; publish.yml does the rest.

Requires a one-time PyPI trusted-publisher config (project hypnos, owner joncarter1, repo hypnos, workflow publish.yml, environment pypi).

🤖 Generated with Claude Code

joncarter1 and others added 2 commits June 23, 2026 10:22
- 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]>
@joncarter1 joncarter1 merged commit 7fc6c1c into main Jun 23, 2026
4 checks passed
@joncarter1 joncarter1 deleted the setup-pypi-publishing branch June 23, 2026 09:32
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