Skip to content

Add TestPyPI publishing for release candidates#38

Merged
ardiloot merged 1 commit intomasterfrom
feature/testpypi-publishing
Feb 20, 2026
Merged

Add TestPyPI publishing for release candidates#38
ardiloot merged 1 commit intomasterfrom
feature/testpypi-publishing

Conversation

@ardiloot
Copy link
Copy Markdown
Owner

  • Change release trigger from created to published
  • Split upload into upload_pypi (production) and upload_testpypi (prerelease)
  • Production releases: verify master branch, publish to PyPI via PYPI_API_TOKEN
  • Pre-releases (RCs): publish to TestPyPI via TEST_PYPI_API_TOKEN
  • Add permissions: contents: read at top level
  • Pin cibuildwheel to v3.3.1, add explicit CIBW_ARCHS per matrix entry
  • Limit windows-11-arm to cp312+ (no earlier Python ARM wheels)
  • Add fetch-depth: 0 for setuptools_scm versioning

Usage:

  • Production release: Create a GitHub release (not pre-release) → builds & publishes to PyPI
  • Release candidate: Create a GitHub pre-release (e.g. v1.4.0rc1) → builds & publishes to TestPyPI

Required secrets: PYPI_API_TOKEN, TEST_PYPI_API_TOKEN

- Change release trigger from 'created' to 'published' in both workflows
- Split upload into upload_pypi (production) and upload_testpypi (prerelease)
- Production releases: verify master branch, publish to PyPI
- Pre-releases (RCs): publish to TestPyPI (TEST_PYPI_API_TOKEN secret)
- Add permissions: contents: read to publish workflow
- Pin cibuildwheel to v3.3.1, add explicit CIBW_ARCHS per matrix entry
- Limit windows-11-arm to cp312+ (no earlier Python ARM wheels)
- Add fetch-depth: 0 for setuptools_scm versioning
- Fix publish_docs.yml: trigger on published, skip pre-releases,
  add permissions: contents: write, add fetch-depth: 0
@ardiloot ardiloot force-pushed the feature/testpypi-publishing branch from 86e29b7 to 8638ea3 Compare February 20, 2026 19:46
@ardiloot ardiloot merged commit ed3f7b6 into master Feb 20, 2026
21 checks passed
@ardiloot ardiloot deleted the feature/testpypi-publishing branch February 20, 2026 19:51
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