Skip to main content

Easily update version numbers across your project.

Project description

Reversion is a command line tool to easily update version numbers in project files.

To install it:

pip install reversion

Python 3 is required.

To use it, create a config file reversion.toml in the root directory of your project. It should look like this:

currentversion = "0.1"

file = "reversion/"
# linematch is a regex; use single quotes so you don't have to escape backslash
line-regex = '__version__'

file = "docs/"
line-regex = 'release'

Each [[place]] table indicates where a copy of the version number is found.

Then run:

reversion +0.1

To check the config file and version number places without changing anything, run:

reversion --check

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 reversion, version 0.2
Filename, size File type Python version Upload date Hashes
Filename, size reversion-0.2-py3-none-any.whl (4.3 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page