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