versionbumpr
Bump the version in your setup.py. Supports direct incrementing as well as custom version numbers.
Installation
Tested on Python3+, probably works with Python2.
pip3 install versionbumpr
Usage
usage: commandline.py [-h] [-b {major,minor,hotfix}] [-v V] [-d]
path_to_setup_py
Bump your setup.py's release version.
positional arguments:
path_to_setup_py Path to your package's setup.py. Required
optional arguments:
-h, --help show this help message and exit
-b {major,minor,hotfix}
Type of version bump to perform. Defaults to "minor"
unless version (-v) is specified.
-v V The version number you want to bump your setup.py to.
-d If this flag is provided, the autogenerated
[filename].old file will be deleted. Defaults to
False.
Commandline args
-b: one of "major", "minor", "hotfix". Defaults to "minor", disregarded if -v is provided.
- major: bump 1.0 to 2.0, 4.3 to 5.0, etc.
- minor: bump 1.0 to 1.1, 4.3 to 4.4, etc.
- hotfix: bump 1.0 to 1.0.1, 4.3.2 to 4.3.3, etc.
-v: Any version number you want. Blindly assumes that it's being provided a version string which conforms with Pypi's requirements.
-d: This script autogenerates a backup of the original input file, but with .old appended to the filename. If -d is passed, this backup file gets deleted instead of being left behind.
Release files for versionbumpr 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| versionbumpr-1.0.1.tar.gz | 2.9 kB | Details |
Release files / versionbumpr-1.0.1.tar.gz
| Download URL | versionbumpr-1.0.1.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a156eac68fda17dda8051dedf27d75b1450a00ba1f86824a29ea3f46737f88c8
|
|
BLAKE2b-256 checksum How to use checksums |
52df28c2878351b9d6e78aaa69e3105b9995db0c0f3a62bcfa4a76ba924d0a88
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.7.5
|