Versioning & Changelog
Summary
Every Aetos artifact — library, service, or site — is versioned with Semantic Versioning and documents its releases in a Keep a Changelog file. The version file is the source of truth, the git tag must equal it, and a Drone guard enforces that equality before anything is published. Releases are cut manually; a tag is what triggers the pipeline.
This page pairs with 10 – Drone Pipelines: the version and tag contract is exactly what those two CI shapes consume.
The version contract
| Artifact | Source of truth | Notes |
|---|---|---|
| Library (PyPI package) | version in pyproject.toml |
check-version also reads it to skip duplicates |
| Service / site (Docker) | VERSION file at the repo root |
one line, x.y.z |
Rules:
- One version per repository. No per-module versions.
- Tag = version. The git tag is bare SemVer (
0.0.6), novprefix, and it MUST match the version file byte-for-byte. The Drone guard fails the build otherwise — this is what stops a tag from silently publishing nothing. - A release is a tag. Bump the version file, promote the changelog, commit, tag, push. Everything else is automated by Drone.
- Never reuse a tag. If a release is wrong, cut a new patch version.
Pre-1.0 (0.y.z)
While a package is 0.y.z, 0.y is treated as the major line:
- breaking change →
0.(y+1).0 - new feature →
0.y.(z+1) - bug fix →
0.y.(z+1)
Once a package reaches 1.0.0, normal SemVer applies. Do not ship 1.0.0
until the public API is considered stable.
The changelog
CHANGELOG.md at the repo root, in Keep a Changelog form. It always has exactly
one open [Unreleased] section with the change categories that apply:
On release you promote it — never delete history:
and add a link reference at the bottom:
Conventions:
- Write entries for humans: one line each, imperative, referencing the user impact, not the commit hash.
- Categories: Added, Changed, Deprecated, Removed, Fixed, Security. Omit empty categories.
- Security fixes get their own entry even if the change is otherwise a bug fix.
- The
[Unreleased]heading is never renamed; copy its content into the new version heading and clear it.
Release checklist
- Confirm the quality gate is green on
main. - Move every
[Unreleased]entry under the new version heading with today's date (## [x.y.z] - YYYY-MM-DD); restore an empty[Unreleased]on top. - Add the two compare-link references at the bottom of the changelog.
- Set the version file:
pyproject.toml(version = "x.y.z") orVERSION. - Commit:
chore(release): x.y.z. - Tag:
git tag x.y.zand push the tag (git push origin x.y.z). - Watch Drone: Type A publishes the wheel/sdist, Type B builds and deploys the
image. Both first assert
tag == version. - Do not reuse the tag if the run fails — fix and cut
x.y.(z+1).
Why the guard matters
The version file and the tag are two facts that must agree; nothing in git
enforces that by itself. A mismatch is not a theoretical risk — a package can be
tagged 0.0.2 while its pyproject.toml still says 0.0.1, and the publish
step (which compares the file against the index) then skips the build
entirely, so 0.0.2 never reaches the index while looking like a release. The
Drone guard turns that silent no-op into a hard failure.