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
Metadata
Release files for reversion 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| reversion-0.2-py3-none-any.whl | Python 3 | none | any | Details for reversion-0.2-py3-none-any.whl |
Release files / reversion-0.2-py3-none-any.whl
| Download URL | reversion-0.2-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fe5400addc747c3d1235bdd8b0fbd49dd04141f4bd6a70cccbdc119a20f0aa6f
|
|
BLAKE2b-256 checksum How to use checksums |
09f1e0f76d9ca68f97115573fd5be17e97faa656a6f05341262c9f3c3cbe5eb2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for reversion 0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.