Tweak the version output

This commit is contained in:
Thomas Sileo 2019-07-07 14:28:43 +02:00
parent 6daf8d6f16
commit 756765733e

View file

@ -45,6 +45,14 @@ except ModuleNotFoundError:
VERSION = (
subprocess.check_output(["git", "describe", "--always"]).split()[0].decode("utf-8")
)
_version_date = (
subprocess.check_output(["git", "show", "6daf8d6"])
.decode()
.splitlines()[2]
.split("Date:")[-1]
.strip()
)
VERSION = f"{VERSION} ({_version_date})"
DEBUG_MODE = strtobool(os.getenv("MICROBLOGPUB_DEBUG", "false"))