ci: publish to PyPI on release (trusted publishing)#22
Merged
Conversation
Add back a pypi-publish job using PyPI trusted publishing (OIDC, no token). PyPI is the source of truth consumers resolve from (`datamaker-py>=x.y`), which is what lets the DataMaker desktop runner install the SDK fully offline from its bundled wheelhouse: uv satisfies a registry/name-versioned dependency from --find-links, but NOT a direct-URL pin. Keep attaching the wheel + sdist to the GitHub release as a no-auth fallback. Requires a one-time PyPI "pending publisher" config (documented in the workflow header) before the first publish succeeds. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TMwtcrQZ2WSMZB7wZYM6za
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.
Why
To let the DataMaker desktop runner install
datamaker-pyfully offline from its bundled wheelhouse, the SDK must be a registry/name-versioned dependency (datamaker-py>=x.y). uv satisfies a registry dep from--find-links(cold-cache offline), but it will not substitute a--find-linksfile for a direct-URL pin (sdist or wheel) — verified. URL pins are exactly why the offline path always fell through to the online download.What
pypi-publishjob using PyPI trusted publishing (OIDC — no API token stored).One-time PyPI setup required (before first publish)
On pypi.org → Account → Publishing → add a pending publisher:
datamaker-pyautomators-comdatamaker-pypython-publish.ymlpypiThe first release after that creates the PyPI project automatically.
🤖 Generated with Claude Code