Python version bumper
Project description
Simple python code to bump kubernetes package manager Helm charts and setup.py versions.
Versions must match semver 2.0.0: https://github.com/semver/semver/blob/master/semver.md
Install
pip install pybump
Usage
bump version: pybump bump [-h] --file PATH_TO_CHART.YAML --level {major,minor,patch} [--quiet]
set explicit version: pybump set --file PATH_TO_CHART.YAML --set-version X.Y.Z [--quiet]
get current version: pybump get --file PATH_TO_CHART.YAML
update Helm chart appVersion: in order to bump/get/set the Helm chart appVersion value just add the --app-version flag pybump bump [-h] --file PATH_TO_CHART.YAML --level {major,minor,patch} [--quiet] [--app-version]
note that the –app-version flag is relevant only for Helm chart.yaml files and has not effect on other cases.
Examples
Case: version: 0.0.1 pybump bump --file Chart.yaml --level patch will bump version to version: 0.0.2
Case: version: 0.1.4-alpha+meta.data pybump bump --file Chart.yaml --level minor will bump version to version: 0.2.0-alpha+meta.data
Case: version: 0.0.3 pybump bump --file Chart.yaml --level major will bump version to version: 1.0.0
Case: version: 0.0.1+some-metadata pybump set --file Chart.yaml --set-version 1.4.0 will set version to version: 1.4.0+some-metadata
Case: appVersion 2.3.2 pybump bump --file Chart.yaml --level patch --app-version will bump appVersion to appVersion: 2.3.3
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.