CI/CD | |
Package | |
Meta | |
Manage your project's version numbers.
semvergit is a CLI tool to manage your project's version numbers. It uses Semantic Versioning to bump the version number. The supported bump types are:
major
minor
patch
prerelease
- Use the latest git tag to determine the current version number.
- Bump the version number
- Create a new git tag
- Push the tag to the remote
Please keep in mind it is designed to be used in a CI/CD pipeline (but not limited to...)
Simple install using
pip install semvergit
Then you can use it in your project like this:
semvergit -t patch -v -am
(to bump the patch version)
This will:
- create a tag
- push it to the remote
- commit all changes
Please cehckout semvergit --help
for more info.
Usage: semvergit [OPTIONS] COMMAND [ARGS]...
CLI for semvergit.
Options:
--version Show the version and exit.
-d, --dry_run Dry run
-v, --verbose Verbose [0<=x<=2]
-t, --bump_type TEXT Bump Type ['major', 'minor', 'patch', 'prerelease']
-m, --message TEXT Commit message
-am, --auto_message Auto commit message
--help Show this message and exit.
Please see CONTRIBUTING.md
This project is published under the MIT license.
If you do find it useful, please consider contributing your changes back upstream.