Easy version incrementing CLI tool.
- Automatic relative version bump
- Automatic
git commit
andgit tag
- Regex based version pattern
- Using
semver
style
pip install verbump
- Create the configuration file
.verbump.ini
inside your project's root directory. - Run
verbump
verbump [major|minor|patch|build]
verbump minor
Available keys for .verdump.ini
:
pattern
: {string} Version pattern regex (required)commit
: {boolean} Enables git auto-committag
: {boolean} Enables git auto-tagcommit_format
: {string} Auto-commit message format. default isv%s
tag_format
: {string} Auto-tag name format. default isv%s
[file:VERSION]
pattern = (\d+.\d+.\d+(?:.\d+)?)*
[file:VERSION]
commit = true
tag = true
pattern = (\d+.\d+.\d+(?:.\d+)?)*
[file:package.json]
pattern = "version"\s*:\s*"(\d+.\d+.\d+(?:.\d+)?)"\s*,
[file:mymodule/__init__.py]
pattern = __version__\s*=\s*(?:"|')(\d+.\d+.\d+(?:.\d+)?)(?:"|')