def get_version():
    with open(os.path.join(os.getcwd(), 'setup.py'), 'r') as f:
        file_contents = f.read()

    file_contents = [x.strip().lower() for x in file_contents.split('\n')]
    file_contents = [x for x in file_contents if x.startswith('version') or x.startswith('__version')]
    if len(file_contents) > 0:
        vsn = file_contents[0].split('=')[-1].strip().replace('"', '').replace("'", '')
    else:
        raise ValueError('setup.py doesn\'t seem to have a version or __version__ specified')

    return vsn
Fields names returned by the query.
dataset/ETHPy150Open wdm0006/pypi-publisher/ppp/ppp.py/get_version--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/gcloud-python/gcloud/datastore/query.py/Query.projection