bump2version

1.0.1 · active · verified Sat Apr 11

Version-bump your software with a single command! This small command-line tool simplifies releasing software by updating all version strings in your source code by the correct increment. It also creates commits and tags, supports highly configurable version formats, works without any VCS but integrates with Git and Mercurial, and is compatible with Python 3 and PyPy3. This is an actively maintained fork of the original `bumpversion` project.

Warnings

Install

Quickstart

Demonstrates bumping a patch version using a configuration file and a dedicated version file. The configuration enables automatic commit and tag creation.

# 1. Create a .bumpversion.cfg file in your project root:
# [bumpversion]
# current_version = 0.1.0
# commit = True
# tag = True
# 
# [bumpversion:file:VERSION]
# 
# 2. Create a file named VERSION with '0.1.0' inside.
# 
# 3. Run the bump command:
$ bump2version patch
# This will update VERSION to 0.1.1, create a commit, and a tag.

view raw JSON →