bump2version
Version-bump your software with a single command!
What it is and what it does
bump2version is a maintained fork of the bumpversion project that simplifies software releases by automating version updates across your codebase. It reads your current version, increments the part you specify (major, minor, patch, or custom), updates all version strings in configured files, and optionally creates a commit and tag in Git or Mercurial. The tool works with any text-based file format and supports highly configurable version formats through configuration files (.bumpversion.cfg or setup.cfg) or command-line arguments.
You can run it as a simple one-liner for single-file operations or use a configuration file for complex multi-file projects. It supports templated commit messages and tag names with access to version parts, environment variables, and timestamps. The package has no runtime dependencies and installs cleanly on modern Python versions.
Use it for:
- Automate version bumping in CI/CD pipelines before publishing releases to PyPI or other package repositories.
- Maintain consistent version strings across multiple files (setup.py, __init__.py, package.json, etc.) in a single operation.
- Create annotated or lightweight Git tags and commits automatically when releasing new versions of your software.
- Customize version formats and increment logic for non-standard versioning schemes using parse and serialize configuration.
- Integrate version bumping into pre-release workflows with templated commit messages that include build numbers or timestamps.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A command-line tool that automates version bumping across your source code by updating version strings, creating commits, and tagging releases in Git or Mercurial.
Yes, if you need reliable automated version bumping. The package has low install friction, no dependencies, and permissive licensing. However, be aware it is aging (last release 2020-10-07) and consider verifying compatibility with your specific Python version and VCS setup before adopting it in production workflows. The maintained fork status and active repository suggest ongoing support, but infrequent releases may indicate limited active development.
Install
bump2version on PyPI
pip
pip install bump2versionuv
uv add bump2versionpoetry
poetry add bump2versionInstalling bump2version
Before you install
Low install friction with no runtime dependencies. The package is aging (last release 2020-10-07) but the repository remains active and unarchived with recent commits (2025-02-20), suggesting maintenance continues despite infrequent releases.
License in practice
MIT license is permissive, allowing commercial and private use with minimal restrictions—you may use, modify, and distribute this package freely as long as you include the license notice.
Quickstart
pip install bump2version
bump2version --current-version 0.5.1 minor src/VERSION
# Or with a config file (.bumpversion.cfg):
bump2version patch
Requires Python 3.5 or later; Git or Mercurial must be installed if you want to create commits and tags.
Verify before relying
- Whether the package's aging status (last release 2020-10-07) affects compatibility with modern Python versions beyond 3.8.
- Current state of the maintained fork relative to the original bumpversion project and whether migration is recommended.
- Whether pre-commit hook integration and environment variable handling (BUMPVERSION_CURRENT_VERSION, BUMPVERSION_NEW_VERSION) work reliably in modern CI/CD environments.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.5) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | aging — 2,137 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 2,278,739/month — #3,169 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: bump2version-1.0.1-py2.py3-none-any.whl
Tags
More Build Tools packages
Provides reusable utilities for Python…
permissive · top 100 on PyPI
tqdmWraps any iterable to display a real-time…
copyleft · top 100 on PyPI
pippip is the standard installer for Python…
permissive · top 100 on PyPI
hatchlingHatchling is a standards-compliant Python build…
permissive · top 100 on PyPI
grpcio-toolsGenerates Python gRPC service stubs and message…
permissive · top 1,000 on PyPI
pre-commitpre-commit is a framework for installing and…
permissive · top 1,000 on PyPI
bump-my-versionAutomates version number management in projects…
permissive · top 5,000 on PyPI
bumpversionA command-line tool that automates version…
permissive · top 5,000 on PyPI
tbumptbump automates version bumping in your project…
permissive · top 15,000 on PyPI
bumpverBumpVer is a CLI tool that searches for and…
permissive · top 15,000 on PyPI
hatch-regex-commitA Hatch plugin that automatically creates Git…
permissive · top 15,000 on PyPI
IncrementalIncremental is a CalVer version manager that…
permissive · top 5,000 on PyPI
bumpAutomatically increments version numbers in…
permissive · top 15,000 on PyPI
keepachangelogParse, manipulate, and generate changelog files…
permissive · top 15,000 on PyPI
python-hglibpython-hglib provides a Python interface to…
permissive · top 15,000 on PyPI
gitchangelogGenerates a formatted changelog from git commit…
permissive · top 15,000 on PyPI