Skip to content

chore(release): PyPI publishing setup - #135

Merged
imran-siddique merged 1 commit into
mainfrom
feat/pypi-publish-setup
Jun 6, 2026
Merged

imran-siddique merged 1 commit into
mainfrom
feat/pypi-publish-setup

Conversation

@imran-siddique

Copy link
Copy Markdown
Member

Sets up OIDC trusted publishing to PyPI via GitHub Actions. Requires configuring the `pypi` environment in repo settings and registering the trusted publisher on PyPI.

Changes

  • pyproject.toml: Added `authors`, `keywords`, and `[project.urls]` (Homepage, Repository, Documentation, Bug Tracker). Classifiers already covered Python 3.11–3.13 and Security/AI topics — left as-is.
  • publish.yml: Fixed several issues in the existing file — pinned actions to real stable versions (v4/v5 from non-existent v6/v7/v8), switched build from `python -m hatchling build` to `python -m build` (standard PEP 517), tightened tag pattern from `v*` to `v*..`, added `permissions: id-token: write` to the `publish` job (was missing, OIDC would have failed at runtime).
  • release-drafter.yml: New workflow to auto-draft a GitHub Release with generated notes on tag push.

cmcp-verify packaging note

`cmcp-verify` is co-packaged in `src/cmcp_verify/` with no separate `pyproject.toml`. The wheel includes both packages via `[tool.hatch.build.targets.wheel] packages = ["src/cmcp_gateway", "src/cmcp_verify"]` — no change needed.

After merging

  1. Create a `pypi` environment in GitHub repo Settings > Environments
  2. Register the trusted publisher at pypi.org with publisher `agentrust-io/cmcp`, workflow `publish.yml`, environment `pypi`
  3. Tag a release: `git tag v0.1.0 && git push origin v0.1.0`

🤖 Generated with Claude Code

- Add authors, keywords, and [project.urls] to pyproject.toml
- Fix publish.yml: pin actions to stable versions (v4/v5), switch
  build command to python -m build, tighten tag pattern to v*.*.*, and
  add id-token: write to publish job for OIDC trusted publishing
- Add release-drafter.yml to auto-draft GitHub Releases on tag push

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@imran-siddique
imran-siddique merged commit 9eff6c8 into main Jun 6, 2026
7 checks passed
@imran-siddique
imran-siddique deleted the feat/pypi-publish-setup branch June 6, 2026 20:24
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