1
Fork 0
mirror of https://github.com/wlinator/luminara.git synced 2024-10-02 20:23:12 +00:00
Lumi/lib/metadata.py

19 lines
442 B
Python

import subprocess
def get_latest_git_tag():
"""
Retrieves the latest git tag.
"""
try:
command = ["git", "describe", "--abbrev=0", "--tags"]
return subprocess.check_output(command).decode().strip()
except subprocess.CalledProcessError as e:
print(f"Error: {e}")
return "BETA"
__title__ = "Luminara"
__version__ = get_latest_git_tag()
__author__ = "wlinator"
__license__ = "MIT License"