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 details)

Uploaded Source

Built Distribution

bumping-0.5.2-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file bumping-0.5.2.tar.gz.

File metadata

  • Download URL: bumping-0.5.2.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.6.7

File hashes

Hashes for bumping-0.5.2.tar.gz
Algorithm Hash digest
SHA256 4ec59b357b13200ea8fd2129967f97260d82cc76278d49be2c6421f155cb6a63
MD5 238488d44a5e4938509ba44c808a2bcd
BLAKE2b-256 8ca8540081a21549603567632634d5afae15b10ac7dbff673025675c1024fc3f

See more details on using hashes here.

Provenance

File details

Details for the file bumping-0.5.2-py3-none-any.whl.

File metadata

  • Download URL: bumping-0.5.2-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.6.7

File hashes

Hashes for bumping-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 db0e5694f84e149600bbddd9e27a2e6f357290d6ef7a9ee155d0275e2be7673a
MD5 1e534853a33e322a9d4a12da39905338
BLAKE2b-256 89346867ac52f1c3a0e4d7a4c0320fc55a075c4d7781ae81a2b498b38919929f

See more details on using hashes here.

Provenance

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