Releases¶
YAIB is built with uv build and published by the python-build.yml workflow.
| Event | Result |
|---|---|
Push to development |
Build and publish to TestPyPI |
Push of a tag such as v1.0.2 or 1.0.2 |
Build and publish to PyPI, and create a GitHub release with signed artifacts |
Release a new version¶
uv build takes the version from pyproject.toml; the tag does not set it. So update the version first:
Then:
-
Merge the tested changes from
developmentintomain. -
Update
versioninpyproject.tomland runuv lock. -
Commit the version bump.
-
Create and push the tag:
-
Wait for the PyPI publish and the GitHub release workflow to finish.
Trusted publishers¶
Publishing uses PyPI's trusted publishers. Both entries must match the repository and workflow exactly:
| Index | Owner | Repository | Workflow | Environment |
|---|---|---|---|---|
| PyPI | rvandewater |
YAIB |
python-build.yml |
pypi |
| TestPyPI | rvandewater |
YAIB |
python-build.yml |
testpypi |