Simple semantic versioning in Python. A CLI tool for tracking semantic versions automatically during the git commit process.
- [If using Windows] Install Cygwin and make sure to include the git package when installing
- [If using Windows] Add Cygwin's bin directory to your path
- [If using Windows] Copy your .ssh folder to cygwin/home/USERNAME/.ssh
- pip install sempylver
- sempylver config --author YOURNAME
- sempylver config --email YOUREMAIL
- sempylver config --working-directory DIR-CONTAINING-GIT-REPOS
- sempylver track NAME-OF-GIT-REPO -s
This creates a version file named version with format X.X.X
If you do not want to modify your setup file to retrieve the version number from the version file, omit -s from the above command - Whenever committing a tracked repo...
Sempylver will automatically increment (+=1) the Y in the version number X.X.Y
Including '-m' in the commit message will increment (+=) the Y in the version number X.Y.Z and set Z==0
Including '-M' in the commit message will increment (+=) the Y in the version number Y.Z.Z and set Z==0
Including '-s' in the commit message will skip version incrementation, and keep the current version
Including '-t' in the commit message will tag the commit with the version number