Releasing
Publishing uses PyPI trusted publishing (OIDC). No PyPI token is stored in the repo or its secrets. Only Adam tags or publishes.
One-time setup (Adam)
- On pypi.org, go to Account → Publishing → Add a pending publisher. Enter:
- project
langsuite - owner
ao3575911 - repository
langsuite - workflow
release.yml - environment
pypi - On GitHub, go to Settings → Environments and create
pypi. Adding yourself as a required reviewer is recommended, so every publish waits for your click.
Each release
- Make sure
versioninpyproject.tomland__version__match (for example1.0.0), the CHANGELOG has a section for that version, and CI onmainis green. - Tag and push:
git tag -s v1.0.0 -m "langsuite 1.0.0" && git push origin v1.0.0. release.ymlthen runs. It checks the tag matches the version, runs lint, types and tests, builds, runs the licence-pack check andtwine check, and publishes once thepypienvironment is approved.- Optionally, create a GitHub release from
docs/RELEASE_NOTES_<version>.md.