unioslo / mreg-cli

Command Line Interface for Mreg
GNU General Public License v3.0
2 stars 7 forks source link

Show git commit in `--version` #253

Closed pederhan closed 3 months ago

pederhan commented 3 months ago

When mreg-cli is installed from git:

$ mreg-cli --version
mreg-cli version 1.0.0 (git: 4a35efeb4b738b6242345a2e169ac3e109317756)

NOTE: if you have an existing editable mreg-cli installation, make sure to re-install with pip install -U -e . to generate the version file.

pederhan commented 3 months ago

I will handle building and publishing tagged versions in a future PR.