Skip to content

Releasing

TonyD365-Agent edited this page Nov 21, 2026 · 2 revisions

Releasing (maintainers)

Every change reaches main through a reviewed pull request with green CI. A release:

  1. Release-candidate PR: set version = "X.Y.Zrc1" in pyproject.toml and __version__, and a CHANGELOG heading. Merge after review.
  2. Publish the candidate: create GitHub release vX.Y.Zrc1 on main, marked pre-release. The Release workflow checks the tag matches the version, builds, runs twine check, and waits for the maintainer to approve the pypi deployment. PyPI upload uses trusted publishing (no token).
  3. Test what users get:
    python e2e/run.py "lanpair[keyring,discovery]==X.Y.Zrc1"
    It installs from PyPI into four fresh virtual environments and must print ALL PASSED. (Right after upload, pip's index can lag a few minutes.)
  4. Final PR: version = "X.Y.Z", CHANGELOG date. Merge, create release vX.Y.Z (latest), approve the deployment, and check pip install lanpair gets it. The release then carries the wheel, the sdist and signed build provenance; check it with gh attestation verify lanpair-X.Y.Z-py3-none-any.whl -R TonyD365/lanpair.
  5. Security fixes: fix in a private security advisory (temporary private fork), release, then publish the advisory with the patched version so Dependabot alerts users.

Lock files: CI installs from hash-pinned requirements/*.txt. After changing requirements/*.in, run scripts/lock.sh (needs uv).

Clone this wiki locally