Bump your setup.py's release version.
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file versionbumpr-1.0.1.tar.gz
.
File metadata
- Download URL: versionbumpr-1.0.1.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
a156eac68fda17dda8051dedf27d75b1450a00ba1f86824a29ea3f46737f88c8
|
|
MD5 |
6de5f66599c0910e198b573546834ddb
|
|
BLAKE2b-256 |
52df28c2878351b9d6e78aaa69e3105b9995db0c0f3a62bcfa4a76ba924d0a88
|