def get_package_version(path):
with open(VERSION_FILE, "<STR_LIT>") as f:<EOL><INDENT>verstrline = f.read()<EOL><DEDENT>VERSION = r"<STR_LIT>"<EOL>results = re.search(VERSION, verstrline, re.M)<EOL>if results:<EOL><INDENT>version = results.group(<NUM_LIT:1>)<EOL><DEDENT>else:<EOL><INDENT>raise RuntimeError("<STR_LIT>".format(path))<EOL><DEDENT>return version<EOL>
Extracts the version