Skip to content

ci: publish to PyPI on release (trusted publishing)#22

Merged
RatulMaharaj merged 1 commit into
mainfrom
ci/publish-to-pypi
Jun 25, 2026
Merged

ci: publish to PyPI on release (trusted publishing)#22
RatulMaharaj merged 1 commit into
mainfrom
ci/publish-to-pypi

Conversation

@RatulMaharaj

Copy link
Copy Markdown
Collaborator

Why

To let the DataMaker desktop runner install datamaker-py fully 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-links file 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

  • Add a pypi-publish job using PyPI trusted publishing (OIDC — no API token stored).
  • Keep building + attaching the wheel/sdist to the GitHub release as a no-auth fallback.

One-time PyPI setup required (before first publish)

On pypi.org → Account → Publishing → add a pending publisher:

  • Project name: datamaker-py
  • Owner: automators-com
  • Repository: datamaker-py
  • Workflow: python-publish.yml
  • Environment: pypi

The first release after that creates the PyPI project automatically.

🤖 Generated with Claude Code

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
@RatulMaharaj RatulMaharaj merged commit f36d9cc into main Jun 25, 2026
4 checks passed
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