/usr/lib/python3/dist-packages/uaclient
NameSizeModeActions
clouds/-0755rm
entitlements/-0755rm
__pycache__/-0755rm
apt.py116750644editdlrm
cli.py221490644editdlrm
config.py130960644editdlrm
conftest.py36270644editdlrm
contract.py123440644editdlrm
defaults.py4490644editdlrm
exceptions.py16000644editdlrm
gpg.py8120644editdlrm
serviceclient.py20780644editdlrm
status.py92700644editdlrm
util.py184360644editdlrm
version.py7300644editdlrm
__init__.py00644editdlrm
Edit: /usr/lib/python3/dist-packages/uaclient/version.py (730B)
""" 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__