@Ghazascanner
_2019runbot
Ghazascanner File Manager
server :Linux phpmyadmin-ubuntu-m-2vcpu-16gb-blr1-01 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
Current Path :
/
lib
/
python3
/
dist-packages
/
uaclient
/
Path :
Upload File :
New :
File
Dir
//lib/python3/dist-packages/uaclient/version.py
""" Version determination functions These are in their own file so they can be imported by setup.py before we have any of our dependencies installed. """ import os.path from subprocess import check_output __VERSION__ = "20.3" PACKAGED_VERSION = "20.3" def get_version(_args=None): """Return the package version if set, otherwise return git describe.""" if not PACKAGED_VERSION.startswith("@@PACKAGED_VERSION"): return PACKAGED_VERSION topdir = os.path.dirname(os.path.dirname(__file__)) if os.path.exists(os.path.join(topdir, ".git")): cmd = ["git", "describe", "--abbrev=8", "--match=[0-9]*", "--long"] return check_output(cmd, universal_newlines=True).strip() return __VERSION__