Add PyPI Trusted Publishing workflow; bump to 1.2.0#100
Merged
Conversation
- .github/workflows/publish.yml: on each published GitHub Release, build the sdist+wheel and upload to PyPI via Trusted Publishing (OIDC, no API tokens). twine check runs before publishing. The publish job uses the `pypi` environment and `id-token: write`. - Bump version 1.1.2 -> 1.2.0 (first pip-only / conda-free release; v1.1.2 was already tagged for the old conda build). Co-Authored-By: Claude Opus 4.8 <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.
Sets up automated publishing of Pynteny to PyPI via Trusted Publishing (OIDC — no API tokens or secrets stored), and bumps the version for the first pip-only release.
Changes
.github/workflows/publish.yml: on every published GitHub Release, builds the sdist + wheel, runstwine check, and uploads to PyPI usingpypa/gh-action-pypi-publishwith OIDC. Uses thepypienvironment andid-token: write.1.1.2→1.2.0(first conda-free release;v1.1.2was already tagged for the old conda build).Verified locally
python -m build+twine checkboth pass; the wheel bundlesconfig.json, installs in a clean venv, reports1.2.0, andpynteny --helpworks.Required one-time setup on PyPI (before the first release)
Add a pending publisher at https://pypi.org/manage/account/publishing/ :
pyntenyRobainaPyntenypublish.ymlpypiAfter this PR is merged and the publisher is configured, publishing is triggered by creating a GitHub Release tagged
v1.2.0.🤖 Generated with Claude Code