Python version bumper
Project description
Install
pip install pybump
Usage
NOTE - This can be dangerous as the auto flag might detect a git repo you were not intended to bump, make sure the bumped file is really a child in the git repo you intended to bump.
note that the –app-version flag is relevant only for Helm chart.yaml files and has not effect on other cases.
Examples
CLI example
CI Usage example
Simple jenkins CI (using k8s plugin) that will use the set –file setup.py –auto options
String label = "test-bump-ci-runner"
podTemplate(
label: label,
containers: [
containerTemplate(
name: 'pybump',
image: "arielev/pybump:1.10.2",
ttyEnabled: true,
command: 'sleep',
args: '1d'
),
containerTemplate(
name: 'jnlp',
image: 'jenkins/inbound-agent:jdk11',
ttyEnabled: true
)
]
) {
node(label) {
timeout(time: 10, unit: 'MINUTES') {
ansiColor('xterm') {
String version = ""
container('jnlp') {
git credentialsId: "credentials_id_here", url: "https://github.com/arielevs/pybump"
}
container('pybump') {
version = sh(
script: "pybump set --file setup.py --auto",
returnStdout: true
).trim()
}
println(version)
}
}
}
}
using a container image
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.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pybump-1.11.6-py3-none-any.whl.
File metadata
- Download URL: pybump-1.11.6-py3-none-any.whl
- Upload date:
- Size: 23.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5c4c3622438789a165a8f634828a70fce7fa1f33bb06671fb757cb5c5e4834ce
|
|
| MD5 |
58cf8caa3fdeaece04a8ad83758d2cea
|
|
| BLAKE2b-256 |
c70a7cdb52e6ed9fd0bd80f99b7ebf0a5da716b4a8b3a48829f5facf03e18f04
|