def get_version():
    git_dir = os.path.join(os.path.dirname(__file__), '../.git')
    if not os.path.isdir(git_dir):
        return VERSION_UNKNOWN

    try:
        cmd = ['git', 'describe', '--tags', '--dirty', '--always']
        ver = subprocess.check_output(cmd)
    except subprocess.CalledProcessError:
        return VERSION_UNKNOWN

    return pep440_version(parse_version(ver))
Grain for the minion User ID
dataset/ETHPy150Open hypothesis/h/h/_version.py/get_version--crossover with--dataset/ETHPy150Open saltstack/salt/salt/grains/minion_process.py/_uid