Skip to main content

Bumps package version numbers

Project description


Bumps package versions.


By default, running bump in a directory with a will bump the “patch” number in place:

$ bump
$ git diff
@ @ from setuptools import setup

-    version='1.0.0',
+    version='1.0.1',
    description='Bumps package version numbers',

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


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]

  -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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
bump-1.0.0-py3-none-any.whl (4.5 kB) Copy SHA256 hash SHA256 Wheel py3 Feb 27, 2018
bump-1.0.0.tar.gz (2.7 kB) Copy SHA256 hash SHA256 Source None Feb 27, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page