samuelbryant / sjb-tools

A simple CLI program to create, maintain and edit todo lists
MIT License
0 stars 0 forks source link

Dynamic versioning from git #39

Closed samuelbryant closed 6 years ago

samuelbryant commented 6 years ago

This may be impossible.

I would like to do the following: If the prog is being run from a venv (dev environment), then i would like --version to output the last official version followed by the local git commit (i.e. the output of git describe).

If the prog is being run from system, then it should do one of the following: 1) Output the last committed version string. 2) Output the same thing that 'git describe' would output on the revision that was last installed