Release
release-please keeps one release pull request open on main per release line. Every merge to main updates
them: the next version from the conventional commits since the last release and the new changelog entry.
There are two release lines, one per top-level directory:
python/holds the Python packagevoraus-robot-arm. It tagsvoraus-robot-arm-py-X.Y.Zand keeps its changelog inpython/CHANGELOG.md. Its version is set inpython/pyproject.toml. Releases up to1.7.0were taggedX.Y.Z.rust/holds the Rust cratesvoraus-robot-armandvoraus-robot-control-client, which share one version set inrust/Cargo.toml. It tagsvoraus-robot-arm-rs-X.Y.Zand keeps its changelog inrust/crates/voraus-robot-arm/CHANGELOG.md. Changes torust/crates/voraus-robot-arm-test-utilsandrust/crates/xtaskalone release nothing. The first release is0.1.0.
A commit releases the line whose directory it touches, and a commit touching both directories releases both.
Each line has its own documentation in python/docs/ and rust/docs/, published with its releases to vdoc as
voraus-robot-arm-py and voraus-robot-arm-rs. The tag build uploads them with tox -e publish-docs in
python/ and just publish-docs in rust/. Everything else in the repository root is shared and releases
nothing: the docs theme, the compose files, the CI configuration and the README.
Merging a release pull request tags the merge commit and creates the GitHub release. The tag build in Jenkins
publishes what that tag releases. Only tag builds publish, so there are no development versions of the
package. To pick the version, add a Release-As: X.Y.Z footer to a commit that touches the release line.
Highlights, Breaking Changes and Known Issues
Each changelog starts with an Upcoming section. A pull request adds its highlights, breaking changes and
known issues there, in the changelog of the release line it changes. Right before merging a release pull
request:
Check out its branch (
release-please--branches--main--components--<component>).Move the filled sections of
Upcominginto the new entry, directly below its version heading, and leaveUpcomingwith its empty section headings.Push the commit and merge the pull request.
release-please rebuilds the release pull request whenever a releasable commit for its line lands on main,
which drops the commit. Check that it is still on the branch before merging. The GitHub release only lists the
generated sections. Paste the moved ones into its notes after the release if they belong there too.
The Rust changelog has no release entry yet. release-please needs one to place a new entry below Upcoming,
so the first Rust release pull request puts its entry above the title and turns # Changelog into
## Changelog. Restore the order in that pull request: title, introduction, Upcoming, then the new entry.