def parse_init(): with open(os.path.join(HERE, PKG_NAME, '__init__.py')) as f: file_data = f.read() return [regex.search(file_data).group(2) for regex in (AUTHOR, DOCSTRING, VERSION)]