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"

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

[[place]]
file = "docs/conf.py"
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.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

reversion-0.1-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file reversion-0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for reversion-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 73c83b969322fb8c9f234c12f52c2f9367aa2e8ddde98f85592d5dce06c5ba73
MD5 c5d719861f066e54552cccf9799b20d4
BLAKE2b-256 24a398b8ad5cfa6ebc12b5e9bef28ed699739bc2447a801b6a77320f81d05073

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page