Version: 24.5.0
This handy module with auto increment the version and save that to a JSON or .env file
Date versions get set to current Year.Month.Revision
-
23.12.4 -> 24.1.0
-
2024.1.4 -> 2024.1.5
Semantic versions get patched
- 1.1.1 -> 1.1.2
Usage:
Short Flag | Long Flag | Description |
---|---|---|
-h | --help | See Usage |
-e | --env | Export to .env file (/directory/.env) |
-j | --json | Export to JSON file (/directory/version.json) |
-d | --directory | Choose directory of .env and JSON files |
-v | --version | Semantic version input |
--major | Increment major version | |
--minor | Increment minor version | |
--patch | Patch version |
Example:
autoversioner -v '1.10.4' --json --directory '~/Downloads' --env
Installation Instructions:
Install Python Package
python -m pip install autoversioner