bumpversion flow:
1.0.0 => 1.0.1-dev1 => 1.0.1-dev2 = > 1.0.1-rc1 => 1.0.1-rc2 => 1.0.1
patch build release build release
Start with an initial release, say 1.0.0
.
-
Create a new release, starting with a development build.
$ bumpversion patch => 1.0.1-dev1
-
Every time you build, bump
build
.$ bumpversion build => 1.0.1-dev2
-
Go to release candidate by bumping
release
.$ bumpversion release => 1.0.1-rc1
-
With every new build, bump
build
.$ bumpversion build => 1.0.1-rc2
-
Finally, bump
release
to generate a final release for the currentmajor
/minor
/patch
version.$ bumpversion release => 1.0.1
- Once the final release has been reached, it is not possible to bump
the
release
before bumpingpatch
again. Trying to bump the release while in final release state will issueValueError: The part has already the maximum value among ['dev', 'rc', 'ga'] and cannot be bumped
.