Created
November 12, 2014 02:38
-
-
Save siso/c25da4e3d6013e320aae to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Install bump package: | |
$ pip install bump | |
create a dummy version file: | |
$ echo 'VERSION = "0.0.0"' > version.py | |
bump help: | |
$ bump --help | |
usage: bump [-h] [-M] [-m] [-b] [-s SUFFIX] [-q] files [files ...] | |
Bumps package versions | |
positional arguments: | |
files Files to update | |
optional arguments: | |
-h, --help show this help message and exit | |
-M Bump major version | |
-m Bump minor version | |
-b Bump patch version | |
-s SUFFIX Update suffix | |
-q Quiet mode: bumps without confirmation and onlythe bumped | |
version number is printed | |
$ cat version.py | |
VERSION = "0.0.0" | |
$ bump -qb version.py | |
0.0.1 | |
$ bump -qb version.py | |
0.0.2 | |
$ bump -qm version.py | |
0.1.0 | |
$ bump -qb version.py | |
0.1.1 | |
$ bump -qM version.py | |
1.0.0 | |
$ bump -qm version.py | |
1.1.0 | |
$ bump -qb version.py | |
1.1.1 | |
$ bump -qb version.py | |
1.1.2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment