diff --git a/AGENTS.md b/AGENTS.md index 0dc40016..a1781bde 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -159,6 +159,9 @@ Name the agent, not the vendor: `Claude Code`, `Codex`, and so on. - The version is set in `pyremap/version.py` and `recipe/recipe.yaml`. Change both, in a commit of its own. +- Between releases, `main` carries the next minor version with a `.dev0` + suffix, such as `2.8.0.dev0`. The release pull request drops the suffix, + and a pull request after the release starts the next one. - Keep dependencies consistent across `pyproject.toml`, `pixi.toml` and `recipe/recipe.yaml`. After changing any of them in `pyproject.toml` or `pixi.toml`, run `pixi lock` and commit the updated `pixi.lock`. diff --git a/docs/developer_guide/releasing.md b/docs/developer_guide/releasing.md index 227d7d7d..6593c7ff 100644 --- a/docs/developer_guide/releasing.md +++ b/docs/developer_guide/releasing.md @@ -15,6 +15,10 @@ version of `pyremap`, and to update the conda-forge feedstock. - Make sure the version follows [semantic versioning](https://semver.org/). For release candidates, use versions like `2.1.0rc1`. + - Between releases, `main` carries the next minor version with a `.dev0` + suffix (e.g. `2.8.0.dev0`). For the release, drop the suffix, or set + the patch version instead for a bug-fix release (e.g. `2.7.1`). + 2. **Check and Update Dependencies** - Ensure that dependencies and their constraints are up-to-date and @@ -158,3 +162,10 @@ version of `pyremap`, and to update the conda-forge feedstock. - Optionally announce the release on relevant communication channels - Update any documentation or release notes as needed + +9. **Start the Next Development Version** + + - Open a PR that sets the version in `pyremap/version.py` and + `recipe/recipe.yaml` to the next minor version with a `.dev0` suffix + (e.g. `2.8.0.dev0` after `2.7.0`), so `main` is never mistaken for the + release. diff --git a/pyremap/version.py b/pyremap/version.py index b693140d..d473db5b 100644 --- a/pyremap/version.py +++ b/pyremap/version.py @@ -1,2 +1,2 @@ -__version_info__ = (2, 7, 0) +__version_info__ = (2, 8, 0, 'dev0') __version__ = '.'.join(str(vi) for vi in __version_info__) diff --git a/recipe/recipe.yaml b/recipe/recipe.yaml index bb882cf0..51347395 100644 --- a/recipe/recipe.yaml +++ b/recipe/recipe.yaml @@ -2,7 +2,7 @@ schema_version: 1 context: name: pyremap - version: "2.7.0" + version: "2.8.0.dev0" python_min: "3.11" package: