Skip to content

Publish Python SDK with PyPI trusted publishing - #184

Merged
edo-chan merged 1 commit into
mainfrom
codex/publish-python-sdk
Jul 14, 2026
Merged

Publish Python SDK with PyPI trusted publishing#184
edo-chan merged 1 commit into
mainfrom
codex/publish-python-sdk

Conversation

@edo-chan

Copy link
Copy Markdown
Collaborator

Summary

  • bump swig-developer-sdk to 0.7.0
  • add the trusted-publisher workflow PyPI is configured to accept: .github/workflows/publish-python.yml
  • build, lint, type-check, and test without OIDC permissions
  • publish from a separate least-privilege job using pypa/gh-action-pypi-publish@release/v1
  • require release tags to match the locked package version and point to a commit on main
  • create a GitHub release with the wheel and source distribution after PyPI succeeds

After merge, publishing is triggered by the swig-developer-sdk@0.7.0 tag. No PyPI token or repository secret is used.

Validation

  • actionlint .github/workflows/publish-python.yml
  • bunx prettier --check .github/workflows/publish-python.yml
  • uv version --short --locked (0.7.0)
  • uv sync --frozen --all-groups
  • uv run --frozen ruff format --check src tests scripts
  • uv run --frozen ruff check src tests scripts
  • uv run --frozen mypy src scripts
  • uv run --frozen pytest (21 passed)
  • uv build

@edo-chan
edo-chan merged commit df1326c into main Jul 14, 2026
5 checks passed
@edo-chan
edo-chan deleted the codex/publish-python-sdk branch July 14, 2026 13:29
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