bump2version allows for version increment in the selected files with respect to semantic versioning, which is configured in .bumpversion.cfg . It basically looks for the match of current version and replaces it with the new version number.This resolves the versioning in setup.py, ci-production-yml, CITATION.cff and is extendable for other files. The feature must be tested manually, since no unit test exists. We should also test the release procedure at the next release.
Few examples which can be run locally:
(command: current version -> new version)
bump2version patch: 0.12.1 -> 0.12.2a1
bump2version minor: 0.12.1 -> 0.13.0a1
bump2version build: 0.12.2a1 -> 0.12.2a2
bump2version release: 0.12.2a2 -> 0.12.2
Note: The tool also requires an up-to-date git repo without uncommited changes.
Resolves #382, #406
bump2version allows for version increment in the selected files with respect to semantic versioning, which is configured in
.bumpversion.cfg
. It basically looks for the match of current version and replaces it with the new version number.This resolves the versioning insetup.py
,ci-production-yml
,CITATION.cff
and is extendable for other files. The feature must be tested manually, since no unit test exists. We should also test the release procedure at the next release.Few examples which can be run locally:
command
: current version -> new version)bump2version patch
: 0.12.1 -> 0.12.2a1bump2version minor
: 0.12.1 -> 0.13.0a1bump2version build
: 0.12.2a1 -> 0.12.2a2bump2version release
: 0.12.2a2 -> 0.12.2Note: The tool also requires an up-to-date git repo without uncommited changes. Resolves #382, #406