-
Follow Conventional Commits in PR titles & merge commits.
-
Merge to
main. The release-please workflow will open a "release PR" proposing:- version bump in
pyproject.toml - updated
CHANGELOG.md
- version bump in
-
Merge the release PR. That action:
- creates a GitHub release with tag
vX.Y.Z - pushes the version commit to
main
- creates a GitHub release with tag
-
The
publishworkflow (on tag) builds wheels/sdist with Poetry and publishes to PyPI.- Uses Trusted Publishing (recommended). Enable this repo at PyPI (Project → "Publishing" → "Trusted Publishers").
- Manual fallback: set
PYPI_API_TOKENrepo secret and dispatch the workflow.
poetry build
poetry publish -r testpypi # configure token via 'poetry config pypi-token.testpypi ...'- After PyPI release, update
conda/recipe/meta.yamlsha256 with the sdist checksum. - Submit a feedstock PR on conda-forge using grayskull / staged-recipes.