Skip to main content

Manage your project's version numbers.

Project description

CI/CD Pytest Publish Coverage Status
Package PyPI - Version PyPI - Python Version
Meta Code style: black Imports: isort linting: pylint Checked with mypy License - MIT

semvergit

Manage your project's version numbers.

Semantic Versioning

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

Workflow

  • 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...)

How to use

Simple install using pip install semvergit

Then you can use it in your project like this: semvergit -t patch -d -v -am (to bump the patch version) This will:

  1. create a tag
  2. push it to the remote
  3. 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.

Development

Please see CONTRIBUTING.md

License

This project is published under the MIT license.

If you do find it useful, please consider contributing your changes back upstream.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

semvergit-0.0.13.tar.gz (10.2 kB view hashes)

Uploaded Source

Built Distribution

semvergit-0.0.13-py3-none-any.whl (7.6 kB view hashes)

Uploaded Python 3

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