- Verify the working tree is clean.
- Run the local verification gate:
python -m buildpytest
- Create and push a version tag:
git tag v0.1.0
git push origin v0.1.0Pushing a v* tag triggers .github/workflows/release.yml, which:
- builds sdist and wheel artifacts
- runs
twine check - creates or updates the matching GitHub release
- uploads the built distributions to that release
PyPI publish is gated behind the repository variable PYPI_PUBLISH=true.
To enable it:
- Create the
opensky-clipackage on PyPI. - Configure trusted publishing for this GitHub repository in PyPI.
- Create the GitHub Actions environment
pypiif you want environment protection rules. - Set the repository variable
PYPI_PUBLISHtotrue.
Once that is configured, the same tag-based release workflow publishes the built distributions to PyPI after the GitHub release assets are created.
Public install target:
pip install opensky-cli