Maintainer-only notes for publishing LibreYOLO to PyPI.
MANIFEST.inexcludes weights and other large artifacts from the source distribution..github/workflows/publish.ymlbuilds artifacts and publishes to PyPI via Trusted Publishing (OIDC).
- Bump the version in
pyproject.tomland treat it as the source of truth. - Commit the version bump and push it to
release. - Confirm tests and install smoke checks have passed for the release commit before tagging.
- Use the GitHub release page to create and publish tag
vX.Y.Ztargetingrelease:https://github.com/LibreYOLO/libreyolo/releases/new - Open the Actions run and approve the final publish step:
https://github.com/LibreYOLO/libreyolo/actions
The publish workflow rejects release tags that are not reachable from release.
The release page creates the tag for you, so there is no separate tag UI step.
- Publishing approvals are enforced through GitHub Environments:
https://github.com/LibreYOLO/libreyolo/settings/environments - No PyPI token is stored in GitHub.
- Publishing uses Trusted Publishing (OIDC).