Skip to main content

Python tool to calculate SemVer based on conventional git commit messages.

Project description

Bumping

Build Status license

Python tool to calculate SemVer based on conventional git commit messages.

Prerequisite

  • Python >= 3

Installation

pip install bumping

Usage

Execute bumping and the calculated version would be printed.

$ bumping
0.1.1

Assume the latest version is 0.5.1 and the version tag is v0.5.1 or 0.5.1, calculate the incremental version starting from the base revision with the following command, which is really useful for the situation where you didn't use SemVer in the previous versions and want to use it afterwards.

# Treat tag v0.5.1 as the base version, 
# calculate the incremental version number 
# and plus with 0.5.1.
bumping --base v0.5.1

# Treat master as the base version, version 
# number is 0.5.1, calculate the incremental version
# number and plus with 0.5.1.
bumping --base master --base-version 0.5.1

Changelog

0.5.1

New Features

  • add commit range options
  • use click to replace docopt

Fixes

  • add regex to parse_version
  • fix version calculating

0.3.0

New Features

  • add version calculating
  • add docopt
  • add project structure

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

bumping-0.5.2.tar.gz (4.1 kB view hashes)

Uploaded Source

Built Distribution

bumping-0.5.2-py3-none-any.whl (5.0 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