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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file reversion-0.2-py3-none-any.whl.
File metadata
- Download URL: reversion-0.2-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fe5400addc747c3d1235bdd8b0fbd49dd04141f4bd6a70cccbdc119a20f0aa6f
|
|
| MD5 |
5ed4968767bb2205633f43f5aa5376a1
|
|
| BLAKE2b-256 |
09f1e0f76d9ca68f97115573fd5be17e97faa656a6f05341262c9f3c3cbe5eb2
|