setupbase.py
def get_version(file, name='__version__'):
    """Get the version of the package from the given file by
    executing it and extracting the given `name`.
    """
    path = os.path.realpath(file)
    version_ns = {}
    with io.open(path, encoding="utf8") as f:
        exec(f.read(), {}, version_ns)
    return version_ns[name]
def get_version(file, name='__version__'):
    path = os.path.realpath(file)
    version_ns = {}
    with io.open(path, encoding="utf8") as f:
        exec(f.read(), {}, version_ns)
    return version_ns[name]
def get_version ( file , name = '__version__' ) : path = os . path . realpath ( file ) version_ns = { } with io . open ( path , encoding = "utf8" ) as f : exec ( f . read ( ) , { } , version_ns ) return version_ns [ name ]
Get the version of the package from the given file by
    executing it and extracting the given `name`.
Get the version of the package from the given file by executing it and extracting the given name .