Releases¶
A release is built from a commit of main that CI built and tested: its wheels and its coverage are the ones of that run of CI, and only the deb packages are built again, for every release of Debian and Ubuntu.
Making a release¶
- The version. It is written in one place,
versioninpyproject.toml:CMakeLists.txt,debian/set-version.shand the release workflow read it from there. The commit that changes it isversion: bump to vX.Y.Z, merged tomain. - CI. The run of CI of that commit on
mainhas to succeed, every build and every test. - The tag. A tag
vX.Y.Zon that commit, pushed:git tag vX.Y.Z <commit> git push origin vX.Y.Z - The workflow.
release.ymlruns on the tag:- checks that the tag is the version of
pyproject.toml, and finds the successful run of CI onmainof its commit; it stops when there is none; - builds the deb packages of every release and architecture;
- packs the source with its submodules,
monero-python-X.Y.Z.tar.gz(the archives of GitHub have none of them); - takes the wheels of macOS and Windows and the coverage report from the run of CI;
- lists the sums of the files in
SHA256SUMS, and attests that the workflow built them; - makes a draft release with the files, the notes below and the changes since the last release.
- checks that the tag is the version of
- Publishing. A maintainer reads the draft, and publishes it.
The notes of a release¶
Every release has these notes (.github/release-notes.md):
Which file to download¶
| Platform | File |
|---|---|
Debian (bookworm, trixie) and Ubuntu (jammy, noble) on amd64, arm64, armhf | python3-monero_<version>-1<distro>1_<arch>.deb, installed with sudo apt install ./<file> |
| macOS (Apple silicon and Intel) | monero-<version>-<python>-macosx_*.whl |
| Windows (x86_64) | monero-<version>-<python>-win_amd64.whl |
| Anything else | monero-python-<version>.tar.gz, the source with its submodules (the "Source code" archives of GitHub have none of them) |
coverage_monero_cpp_html.zip is the coverage report of the tests.
Verify a download¶
sha256sum -c --ignore-missing SHA256SUMS
gh attestation verify <file> --repo libmonero/monero-python
The first checks the file against the list published with the release, the second that it was built by the release workflow of this repository.