Skip to main content

Python Version Bumper

Build Version License Python Version

Simple python code to bump kubernetes package manager Helm charts.yaml, VERSION and setup.py files versions.

Version is allowed a lower case ‘v’ character for example: v1.5.4-beta2

Install

pip install pybump

Usage

bump version:
pybump bump [-h] --file PATH_TO_CHART.YAML --level {major,minor,patch} [--quiet]

set explicit version or set auto release+metadata:
pybump set --file PATH_TO_CHART.YAML --set-version X.Y.Z [--quiet]

the auto flag is mainly intended for pull request CIs, by using:
pybump set --file PATH_TO_CHART.YAML --auto [--quiet]
pybump will add git branch name as prerelease and git hash as metadata

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: v0.0.3
pybump bump --file Chart.yaml --level major will bump version to version: v1.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: version: v7.0.2
pybump set --file setup.py --auto will set version to version: v7.0.2-fix-minor-bug-5a51e0e1d9894d3c5d4201619f10be242320cb59

Case: appVersion 2.3.2
pybump bump --file Chart.yaml --level patch --app-version will bump appVersion to appVersion: 2.3.3

Case: version: 1.0.13
pybump get --file Chart.yaml will return 1.0.13

Case: version: 1.0.13+some-metadata
pybump get --file Chart.yaml --release will return some

Metadata

Release files for pybump 1.3.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for pybump 1.3.4
File Interpreter ABI Platform Actions
pybump-1.3.4-py3-none-any.whl Python 3 none any Details for pybump-1.3.4-py3-none-any.whl

Release files / pybump-1.3.4-py3-none-any.whl

Download URL pybump-1.3.4-py3-none-any.whl
Size 14.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c113b292e9031d6612e20af79ce01620038ebe1438ef60bd9ff195d78b9609a2
BLAKE2b-256 checksum
How to use checksums
bef75a0a471422d14fec4d0b481ce2b07e690cd5ba2b2146c7499f8b345b008f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0

Security for pybump 1.3.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.3.4 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page