A CLI tool that auto-bumps version number for your app.
Project description
SemVerBump
SemVerBump or Semantic Version Bump is a CLI tool that auto-bumps version (with auto git tagging and commit) for your application.
Currently supports
- JSON
Example -
- package.json
{
"version": "0.1.1"
}
Caveat - version attribute should be in an object and not in a list.
Supported Runtime
- Python 3.9+
Install
pip install semverbump
Quick start
# version file and path defaults to `package.json` and `version` key
semverbump # <command> major | minor | patch
semverbump major # 1.x.x
semverbump minor # x.1.x
semverbump patch # x.x.1
Custom version file and path
semverbump --version-file app-version.json --version-path project.version minor
# or shorter version
semverbump -f app-version.json -p project.version minor
// app-version.json
{
"project": {
"name": "SuperApp",
"version": "1.0.2"
}
}
Roadmap
- [✅] SemVer support
- [✅] No additional dependencies (Python Standard Libary only)
- [✅] Tested with JSON based configs, it should work with any JSON file if in the format given above.
- [✅] Auto Git commits and Tags
- [❓] Add support for more file formats like YAML and TOML
Alternatives -
Author - Nikhil Akki
Personal Blog - nikhilakki.in
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 Distribution
semverbump-0.2.2.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for semverbump-0.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63d212d06088c776df56568997db680bfd91b51cda499a64a4fc97d7b048f5c6 |
|
MD5 | a93f49af00670bceca9ff783920a5c35 |
|
BLAKE2b-256 | a17b31ea8988a9945bcb16f19ba0575218f6bb703918554258bd7a57be913f58 |