def get_project_name_version():
    version = {}
    base_dir = os.path.dirname(os.path.abspath(__file__))
    with open(os.path.join(base_dir, 'tensorflow_addons', 'version.py')) as fp:
        exec(fp.read(), version)
    project_name = 'tensorflow-addons'
    if ('--nightly' in sys.argv):
        project_name = 'tfa-nightly'
        version['__version__'] += get_last_commit_time()
        sys.argv.remove('--nightly')
    return (project_name, version)
def get_project_name_version():
    version = {}
    base_dir = os.path.dirname(os.path.abspath(__file__))
    with open(os.path.join(base_dir, 'tensorflow_addons', 'version.py')) as fp:
        exec(fp.read(), version)
    project_name = 'tensorflow-addons'
    if ('--nightly' in sys.argv):
        project_name = 'tfa-nightly'
        version['__version__'] += get_last_commit_time()
        sys.argv.remove('--nightly')
    return (project_name, version)