Repository navigation
ci: Publish to PyPI with trusted publishing - #93
Open
kylebarron wants to merge 1 commit into
Open
kylebarron wants to merge 1 commit into
kylebarron wants to merge 1 commit into
Conversation
Replace the long-lived `PYPI_PASSWORD` API token with PyPI trusted publishing (OIDC), so no PyPI credentials are stored in the repo. Uploads run in a `pypi-release` environment, which can require approval before a release goes out, and only on tag pushes. Use the `release/v1` branch of gh-action-pypi-publish instead of `master`, and build the sdist with uv instead of setup-python + build. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
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.
Note
This PR was written by Claude (Claude Code), not by @kylebarron.
Switches PyPI publishing from the
PYPI_PASSWORDAPI token to trusted publishing (OIDC), as in kylebarron/pydelatin#56. This is separate from the modernization stack (#84–#90).Changes
upload_pypiruns in apypi-releaseenvironment withid-token: writeand no stored credentials. It now runs only on tag pushes, and usespypa/gh-action-pypi-publish@release/v1instead of@master.uv build --sdistinstead of setup-python@v2 +pip install numpy Cython build.It merges cleanly with the Python 3.14 wheels PR. The workflow file keeps the name
build-wheels.yml, which the PyPI trusted publisher setting needs to match.Setup needed before the next release
kylebarron, repositoryquantized-mesh-encoder, workflowbuild-wheels.yml, environmentpypi-release.pypi-releaseenvironment.PYPI_PASSWORDsecret and revoke the token on PyPI.🤖 Written by Claude Code