Releasing
The captain releases (GOVERNANCE.md); this is the checklist, in order. X.Y.Z is the version being released.
- Only the captain and bots have ever committed.
git log --all --format='%an %ae %cn %ce' | sort -ushows bighydro, GitHub and dependabot, nothing else. - Bump the version in
pyproject.tomland__version__inlogbook/__init__.pytogether, thenuv locksouv.lockcarries it too. - Assemble the changelog.
uv run python scripts/changelog_assemble.py X.Y.Zfolds every fragment inchangelog.d/(and the## Unreleasedblock of CHANGELOG.md, while one exists) into## X.Y.Z — <today>at the top of CHANGELOG.md and deletes the fragments.--dry-runprints the section first. Read the result: headings come in the order the fragments named them, and a release reads better when they are reworded or reordered by hand, as 0.5.0 was. - Commit on a branch and open the release pull request, labelled
no-changelog: it is the one pull request that edits CHANGELOG.md.git commit -s -S, thengit log -1 --format='%G?'printsG. - Tag the merged commit.
git grep __version__ HEAD -- logbook/__init__.pyprints X.Y.Z; CHANGELOG.md has X.Y.Z with today's date; thengit tag -s vX.Y.Z -m vX.Y.Z && git push origin vX.Y.Z. Thereleaseworkflow builds the wheel, attests it, publishes to PyPI and makes the GitHub release. - Point the Homebrew formula at the release. Once PyPI lists X.Y.Z, put the sdist's URL and SHA-256 (read from PyPI's JSON, the command is in homebrew/README.md) into
homebrew/logbook.rb, build and test it on a Mac as that page says, open ano-changelogpull request for it, and when it is merged copy the file toFormula/logbook.rbinbighydro/homebrew-logbookand push.brew upgradeon every Mac that tapped it then installs X.Y.Z; until this is done they stay on the previous release whilepipxanduvusers already have the new one.