5 Commits
Author SHA1 Message Date
Dominik Jain 6da423c70a Add dev command to bump_version and make its interface explicit
bump_version could previously only create releases. It now provides two
subcommands, and the mutually exclusive --major/--minor/--patch flags (as
well as the explicit --version option) are replaced by a positional
argument, which cannot be misused:

    bump_version.py release <current|major|minor|patch>
    bump_version.py dev <major|minor|patch>

`dev` bumps the version to a new .dev0 version and commits it as
"Set version to vX" without creating a tag or touching the changelog. This
allows work on main to target a new minor/major version independently of a
release.

Because a .dev0 version no longer necessarily reserves the next patch
version, `release` now takes the target "current", which releases the
version reserved by the current .dev version (the usual case), whereas
major/minor/patch bump beyond it. The former special case of not
incrementing the patch version is thereby removed; `release patch` now
increments the patch version as its name suggests.

`release current` fails if the current version is not a development
version, in which case there is no reserved version to release.
2026-09-15 10:27:45 +02:00
Dominik Jain 1c5cf3486e Improve release workflow description (single tag required) 2026-05-18 14:33:30 +02:00
Dominik Jain ccc80e7253 Improve release mechanism (two stages: draft release + publish to PyPi upon conversion) 2026-05-11 22:18:47 +02:00
Dominik Jain f974abc9ef Improve release process description 2026-04-11 15:29:22 +02:00
Dominik Jain 527abc2ed0 Add commit and tag in bump_version script, add developer instructions 2026-04-08 17:33:27 +02:00