Bumps package version numbers
Project description
bump
Bumps package versions.
Example
By default, running bump in a directory with a setup.py will bump the “patch” number in place:
$ bump 1.0.1 $ git diff setup.py ───────────────────────────────────────────────── modified: setup.py ───────────────────────────────────────────────── @ setup.py:6 @ from setuptools import setup setup( name='bump', - version='1.0.0', + version='1.0.1', description='Bumps package version numbers', long_description=open('README.rst').read(), license='MIT',
Conveniently bump will also return the new version number, so you can use it after running the command, for example:
$ export VERSION=`bump` $ echo "The new version is $VERSION" The new version is 1.0.1
Options
The bump command can also bump the major or minor version numbers, or set the pre-release identifier or local version segment:
$ bump --help Usage: bump [OPTIONS] [INPUT] [OUTPUT] Options: -M, --major Bump major number -m, --minor Bump minor number -p, --patch Bump patch number --pre TEXT Set the pre-release identifier --local TEXT Set the local version segment --help Show this message and exit.
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
bump-1.0.0.tar.gz
(2.7 kB
view details)
Built Distribution
bump-1.0.0-py3-none-any.whl
(4.5 kB
view details)
File details
Details for the file bump-1.0.0.tar.gz
.
File metadata
- Download URL: bump-1.0.0.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23230aeb0ee99407b878cd22edcdcd560e0e51bfee094457c148d7dd62b1d096 |
|
MD5 | 99481bcd99de0bd01eb19983fa800f0c |
|
BLAKE2b-256 | cdc47020390ef5de2e2f5bc6d2f5a6a60294c9e95ff537771840ce29579f71c5 |
File details
Details for the file bump-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: bump-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 790ba1eb663ef9c04bd77f161205eb8fe9dd18c813ebf636f1fe7e01c91d8d49 |
|
MD5 | 1407a479863fc1051442b169d2f21100 |
|
BLAKE2b-256 | 94db95439bacd87d8ac08c2a0858064a2af967b4609ca15ec57b08ffb1f08fb4 |