Releasing¶
PyPI is published only from a GitHub Release, never from a push or tag.
- Bump
__version__intether/__init__.py(and the version assertion intests/test_tether.py) and updatedocs/release-notes.md. - Merge to
main. - Create a GitHub Release with tag
v<version>(for examplev0.1.0). The tag must match__version__(a leadingvis ignored) or the workflow fails before building.
The delivery.yml workflow then verifies the tag, builds the sdist and wheel, publishes to PyPI with trusted publishing (no secrets) and attaches both files to the release. Pre-releases are skipped: nothing is published or attached.
One-time setup (repository owner)¶
- On PyPI (
https://pypi.org/manage/account/publishing/), register a trusted publisher fortether-sdk: - PyPI Project Name:
tether-sdk - Owner:
igormcsouza - Repository name:
tether - Workflow name:
delivery.yml - Environment name:
pypi - In the GitHub repository settings, the
pypienvironment and GitHub Pages (GitHub Actionsworkflow source) are already configured.