Skip to main content

Bump the version in the project files.

Project description Codecov PyPI - License PyPI - Wheel PyPI - Format PyPI - Python Version Requirements Status Updates Python 3 Say Thanks!

Bumplus is a command line tool to bump your project version.


Python 2.7, 3.4, 3.5, 3.6, 3.7


pip install bumplus


Put a TOML file named .bumplus.toml in the top-level directory of your project. This file at least contains the following content:

version = "<current_version>"

See Configuration for more config options.

Command line

cd <project root dir>
bumplus <new_version>

Use bumplus –help to display the help text.


import bumplus
bp = bumplus.Bumplus('<project root dir>')

Example of .bumplus.toml

version = '1.2.3'

search = '''
## Unreleased
replace = '''
## Unreleased

## {{new_version}} - {{utcnow | strftime("%Y-%m-%d")}}

search = '''
search = '''

search = '{{old_version}}'
replace = '{{new_version}}'

search = '{{old_version}}'
replace = '{{new_version}}'



A string that is the current version.


A table which configures all files need to be modified.

Every key is a relative path name. The value of a key is an array of replacement config. Every item of an array is an object which has two keys: search and replace. The value of search is the pattern to be replaced. The value of replace is the new text after replacing.

The contents of search and replace are Jinja2 templates. Several predefined variables can be used in the templates:

  • old_version
  • new_version
  • now
  • utcnow

now and utcnow are Python datetime objects.

The Jinja2 templates also support a custom filter strftime, which is used to format time such as now and utcnow. The format string is the same as the parameter of strftime method of Python datetime object.


Bumplus always replaces the current version in .bumplus.toml after processing all files in the configuration.



Project details

Download files

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

Files for bumplus, version 0.1.6
Filename, size File type Python version Upload date Hashes
Filename, size bumplus-0.1.6-py2.py3-none-any.whl (6.7 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size bumplus-0.1.6.tar.gz (5.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page