git-semver¶
git-semver is a tiny and simple tool that just dumps the current or future version number of your project, for use in conjunction with git tags to manage a project’s releases.
Documentation¶
git-semver¶
git-semver is a tiny and simple tool that just dumps the current or future version number of your project, for use in conjunction with git tags to manage a project’s releases.
Install¶
From PyPI¶
The software is packaged as git-semver on PyPI, you can install it using pip (or easy_install, if you live in the past). It can work globally (if you have the correct rights) or locally in a virtualenv, usual business.
pip install git-semver
From GitHub¶
Wanna hack on git-semver?
Just clone it and use an “editable install”.
git clone https://github.com/hartym/git-semver.git
pip install -e ./git-semver
Reference¶
Current version numbers are read from git tags, if you never tagged a commit with a semantic version number, start by doing so.
git semver¶
Dumps current version number to stdout.
git semver –next-patch (or -p)¶
Dumps the next version number to use incrementing the patch number.
git semver –next-minor (or -m)¶
Dumps the next version number to use incrementing the minor version.
git semver –next-major (or -M)¶
Dumps the next version number to use incrementing the major version.