Skip to main content

Easy version incrementing CLI tool

Project description

verbump

pypi

Easy version incrementing CLI tool.

  • Automatic relative version bump
  • Automatic git commit and git tag
  • Regex based version pattern
  • Using semver style

Installation

pip install verbump

Usage

  1. Create the configuration file .verbump.ini inside your project's root directory.
  2. Run verbump
verbump [major|minor|patch|build]

Relative bump

verbump minor

Configuration

Available keys for .verdump.ini :

  • pattern: {string} Version pattern regex (required)
  • commit: {boolean} Enables git auto-commit
  • tag: {boolean} Enables git auto-tag
  • commit_format: {string} Auto-commit message format. default is v%s
  • tag_format: {string} Auto-tag name format. default is v%s

Configuration samples

Generic VERSION file:

[file:VERSION]
pattern = (\d+.\d+.\d+(?:.\d+)?)*

Generic VERSION file, git auto-commit & auto-tag enabled:

[file:VERSION]
commit = true
tag = true
pattern = (\d+.\d+.\d+(?:.\d+)?)*

Nodejs package.json :

[file:package.json]
pattern = "version"\s*:\s*"(\d+.\d+.\d+(?:.\d+)?)"\s*,

Python __version__ style:

[file:mymodule/__init__.py]
pattern = __version__\s*=\s*(?:"|')(\d+.\d+.\d+(?:.\d+)?)(?:"|')

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

verbump-0.2.4.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

verbump-0.2.4-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file verbump-0.2.4.tar.gz.

File metadata

  • Download URL: verbump-0.2.4.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.2

File hashes

Hashes for verbump-0.2.4.tar.gz
Algorithm Hash digest
SHA256 f6dc32a859381e3fd1fdfc842320bce248efa468b4e0911e07fda72828426459
MD5 daebcc182a3db745b9469350ab33f1af
BLAKE2b-256 4438f891053b8c6aa7e88367d7ecbb3fa80996791a3bc61c2016501a40cba510

See more details on using hashes here.

File details

Details for the file verbump-0.2.4-py3-none-any.whl.

File metadata

  • Download URL: verbump-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.2

File hashes

Hashes for verbump-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c3f178560c445be13e566bb375ac795b3f31cf5a8f273f3ef4835a079f15f0e2
MD5 4640f68f34d1e341d522daaf766aab22
BLAKE2b-256 9331c51121f63cb7eb7d9ad937b6e0544feb4f51d8f67c1b2d8a024b76f84f80

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page