def get_app_version_full(): commit = get_top_commit() commit_str = f'.{commit}' if commit else '' return f'{APP_VERSION}{commit_str}'
def get_server_version_full(): commit = get_top_commit() commit_str = f'.{commit}' if commit else '' return f'{SERVER_VERSION}{commit_str}'
from pkg.utils.git import get_top_commit DEBUG = False APPLICATION_NAME = 'AlpineBook' VERSION = '0.01' APPLICATION_VERSION = f'{APPLICATION_NAME} v{VERSION}' CONFIG = None git_commit = get_top_commit() if git_commit: APPLICATION_VERSION += f'.{git_commit}'