Releasing
predxt uses SemVer. Release tags use the vX.Y.Z format.
First release
- Confirm the version in
pyproject.tomlandsrc/predxt/__init__.py. - Update
CHANGELOG.md. - Run local validation:
uv sync --group dev
uv run ruff check .
uv run mypy
uv run pytest -q -s
uv build
uv run twine check dist/*
- Push
main. -
Confirm PyPI Trusted Publishing is configured:
-
PyPI project name:
predxt - Owner:
hzprotocol - Repository:
predxt - Workflow:
release.yml -
Environment:
pypi -
Create and push a tag:
git tag v0.1.0
git push origin v0.1.0
- The release workflow builds distributions first. The publish job waits for
the GitHub
pypienvironment approval, then creates the GitHub release and publishes to PyPI with Trusted Publishing.
PyPI
Use PyPI Trusted Publishing for GitHub Actions. Configure the PyPI project named
predxt to trust this repository and the release.yml workflow with the
pypi environment.
If Trusted Publishing is not configured for the first release, build artifacts locally and publish manually from a controlled maintainer environment.