Skip to content

ci: add PyPI trusted-publishing release workflow#11

Merged
imran-siddique merged 1 commit into
mainfrom
ci/pypi-trusted-publishing
Jun 11, 2026
Merged

ci: add PyPI trusted-publishing release workflow#11
imran-siddique merged 1 commit into
mainfrom
ci/pypi-trusted-publishing

Conversation

@imran-siddique

Copy link
Copy Markdown
Contributor

Closes #9

Makes the conformance suite installable from PyPI as agentrust-trace-tests (org-scoped; bare trace-tests is generic and collision-prone -- both names were free, picked the scoped one). The CLI command stays trace-tests via the existing [project.scripts] entry (trace_tests.cli:main, confirmed present).

  • pyproject.toml: rename package, add authors (agentrust.io, no personal email), Apache-2.0 classifiers matching the repo LICENSE, keywords, Repository and Bug Tracker URLs; fix the self-referencing dev extra. No version bump.
  • .github/workflows/release.yml: triggers on release: published and workflow_dispatch; build job uploads dist/ artifact; publish job uses pypi environment with id-token: write and pypa/gh-action-pypi-publish -- OIDC trusted publishing only, no API tokens. All actions pinned by full commit SHA with version comments.

Local python -m build verified: sdist and wheel build cleanly.

One-time maintainer steps

  1. On pypi.org: Account -> Publishing -> add a pending publisher for project agentrust-trace-tests with owner agentrust-io, repository trace-tests, workflow release.yml, environment pypi.
  2. In GitHub repo settings: Settings -> Environments -> create environment pypi.
  3. Publish a GitHub release to trigger the first upload.

Generated with Claude Code

Publish the conformance suite as agentrust-trace-tests (org-scoped
name; bare trace-tests is generic). Adds authors, classifiers,
keywords, and repository URLs for PyPI readiness. Workflow triggers
on GitHub release publish plus workflow_dispatch, actions pinned by
full commit SHA, OIDC trusted publishing only, no API tokens.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@imran-siddique imran-siddique merged commit ff4f310 into main Jun 11, 2026
4 of 5 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.

Publish trace-tests to PyPI with CLI entry point

1 participant