https://github.com/hkiang01/version-upper
Update version strings in your repo using semantic versions and commit hashes
https://github.com/hkiang01/version-upper
ci continuous-delivery continuous-deployment continuous-integration pypi pypi-package python python-click python36 python37 python38 release-automation release-management releases semantic-versioning version-manager versioning versions
Last synced: 20 days ago
JSON representation
Update version strings in your repo using semantic versions and commit hashes
- Host: GitHub
- URL: https://github.com/hkiang01/version-upper
- Owner: hkiang01
- License: unlicense
- Created: 2020-07-20T07:18:22.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-02T16:04:07.000Z (over 5 years ago)
- Last Synced: 2025-11-28T13:00:23.195Z (3 months ago)
- Topics: ci, continuous-delivery, continuous-deployment, continuous-integration, pypi, pypi-package, python, python-click, python36, python37, python38, release-automation, release-management, releases, semantic-versioning, version-manager, versioning, versions
- Language: Python
- Homepage: https://pypi.org/project/version-upper
- Size: 5 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# version-upper
[](https://github.com/hkiang01/version-upper/actions?query=workflow%3Atests)
[](https://coveralls.io/github/hkiang01/version-upper?branch=master&service=github)
Primarily a reaction to [bumpversion](https://github.com/peritus/bumpversion) not supporting git hashes -- [issue](https://github.com/peritus/bumpversion/issues/125)

## Overview
```
Usage: version-upper [OPTIONS] COMMAND [ARGS]...
A tool to update version strings in files using semantic versioning and
commit hashes.
Examples:
# bump commit hash version
version-upper bump commit_hash
# 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:
```json
{
"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 :)