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-upper.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.2.tar.gz
(8.5 kB
view hashes)
Built Distribution
Close
Hashes for version_upper-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | adaf38bfbaf3c72a3c60e3edd222ce2cf7afe0ac1d80f2848aab005d1ea7185e |
|
MD5 | cc1facf90335b48fdebe8c219f5b1a3b |
|
BLAKE2b-256 | d22b9801d8a815fa9bde8e80dfd7e34ddafaca0511b4aeb2130d0436538f7d1e |