Bump version strings in your repo
Project description
version-upper
Primarily a reaction to bumpversion not supporting git hashes -- issue
Overview
Usage: version-upper [OPTIONS] COMMAND [ARGS]...
A tool to update version strings in files using semantic versioning and
commit hashes.
Examples:
# bump commit sha version
version-upper bump commit_sha
# bump patch version
version-upper bump patch
# bump patch version as release candidate
version-upper bump patch --release-candidate
# bump minor version
version-upper bump minor
# bump major version
version-upper bump major
The config file adheres to the Config Pydantic schema, and is named
version_conifg.json by default.
Here is a sample config:
{
"current_version": "0.0.0",
"current_semantic_version": "0.0.0",
"files": []
}
Options:
--config TEXT [default: version_upper.json]
--help Show this message and exit.
Commands:
bump Bumps version strings, updates config.
config-schema Prints the config schema in JSON
current-semantic-version Prints the current semantic version
current-version Prints the current version
release Removes rc from the version strings
sample-config Prints a sample config
Configuration
Create a file called version-upper.json
(can be overridden using --config
) like below:
{
"current_version": "0.0.0",
"current_semantic_version": "0.0.0",
"files": ["main.py", "app/version.json"]
}
Be sure to add files to "files"
otherwise nothing will be updated :)
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
version-upper-0.0.1.tar.gz
(8.5 kB
view hashes)
Built Distribution
Close
Hashes for version_upper-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f05539102fef3eaa63db1ae9c5ce8a1f67ad0093c466d95136f43d5589148ba0 |
|
MD5 | 6d5bad9e34752bfa4634ab6cef540c8d |
|
BLAKE2b-256 | b812d136d7107b9a38a9b25c850f8ad2cdc8badc7d557062db3a08b56465c3b7 |