mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-12-22 13:14:28 +00:00
Tweak the version output
This commit is contained in:
parent
6daf8d6f16
commit
756765733e
1 changed files with 8 additions and 0 deletions
|
@ -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"))
|
||||
|
||||
|
|
Loading…
Reference in a new issue