Easy version incrementing CLI tool
Project description
verbump
Easy version incrementing CLI tool.
- Automatic relative version bump
- Automatic
git commit
andgit tag
- Regex based version pattern
- Using
semver
style
Installation
pip install verbump
Usage
- Create the configuration file
.verbump.ini
inside your project's root directory. - Run
verbump
verbump [major|minor|patch|build]
Relative bump
verbump minor
Configuration
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
Configuration samples
Generic VERSION
file:
[file:VERSION]
pattern = (\d+.\d+.\d+(?:.\d+)?)*
Generic VERSION
file, git auto-commit & auto-tag enabled:
[file:VERSION]
commit = true
tag = true
pattern = (\d+.\d+.\d+(?:.\d+)?)*
Nodejs package.json
:
[file:package.json]
pattern = "version"\s*:\s*"(\d+.\d+.\d+(?:.\d+)?)"\s*,
Python __version__
style:
[file:mymodule/__init__.py]
pattern = __version__\s*=\s*(?:"|')(\d+.\d+.\d+(?:.\d+)?)(?:"|')
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
verbump-0.2.4.tar.gz
(3.8 kB
view hashes)