Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/takluyver/reversion
Easily update version numbers across your project
https://github.com/takluyver/reversion
Last synced: about 2 months ago
JSON representation
Easily update version numbers across your project
- Host: GitHub
- URL: https://github.com/takluyver/reversion
- Owner: takluyver
- License: mit
- Created: 2015-08-07T23:01:07.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-08-08T01:21:58.000Z (over 9 years ago)
- Last Synced: 2024-10-11T19:19:07.574Z (3 months ago)
- Language: Python
- Homepage: http://reversion.readthedocs.org/
- Size: 160 KB
- Stars: 16
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
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