diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f98025d..13aedeb 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -28,11 +28,39 @@ release. Issues without a milestone stay in the backlog. Add a due date when a release date has been agreed. +### Choose a release version + +Use [Semantic Versioning][semver] for Coulobre releases. Consider the +documented interfaces people depend on, including configuration, CLI commands, +upgrade paths, and the protocols between the panel and its service nodes. + +| Change | Version increment from 1.0 onward | +| --- | --- | +| Compatible bug fixes, including compatible security fixes | Patch (`1.2.3` → `1.2.4`) | +| Compatible features or deprecations | Minor (`1.2.3` → `1.3.0`) | +| Incompatible changes to a documented interface | Major (`1.2.3` → `2.0.0`) | + +Before 1.0, use `0.Y.Z`. Increment `Y` and reset `Z` for a feature release or +an incompatible change. Increment `Z` for compatible fixes. Document any +incompatible change and its upgrade steps in the release notes. + +Start release candidates at 1 for each target version and increment the +candidate number for each release. Use [Python version specifiers][versions] +in `pyproject.toml` and the matching tag in Git and Gitea. + +| Release | Python package version | Git tag | +| --- | --- | --- | +| First candidate for 0.12.0 | `0.12.0rc1` | `v0.12.0-rc.1` | +| Next candidate for 0.12.0 | `0.12.0rc2` | `v0.12.0-rc.2` | +| Final 0.12.0 release | `0.12.0` | `v0.12.0` | + +Keep published release tags and artifacts fixed. Publish a new version for +subsequent changes. + ### Prepare a release -1. Update the package version in `pyproject.toml`. For a release candidate, - use a Python version such as `0.1.0rc1` and a matching Git tag such as - `v0.1.0-rc.1`. [Python version specifiers][versions] +1. Update the package version in `pyproject.toml` using the versioning rules + above. 2. From a clean checkout, use `python -m build` to build the source distribution and wheel. Run `python tools/check_core_release.py dist/*.tar.gz dist/*.whl` to compare @@ -71,6 +99,7 @@ python tools/web_update_manifest.py dist/coulobre_panel-0.10.2rc1-py3-none-any.w [issues]: https://code.hosting.hippogrief.nl/hippogrief/coulobre/issues [milestones]: https://code.hosting.hippogrief.nl/hippogrief/coulobre/milestones [releases]: https://code.hosting.hippogrief.nl/hippogrief/coulobre/releases +[semver]: https://semver.org/ [versions]: https://packaging.python.org/en/latest/specifications/version-specifiers/#pre-releases [build]: https://build.pypa.io/en/stable/ [deployment-checks]: docs/deployment.md#verify-a-new-installation