diff --git a/setup.py b/setup.py index 609095d..2c85eed 100644 --- a/setup.py +++ b/setup.py @@ -52,7 +52,7 @@ PACKAGE_DESCRIPTION_SHORT = """ Unofficial utility library for parsing and processing the Partisia Blockchain ABI Format.""".strip() def parse_version_file(text: str) -> str: - text = re.sub('^#.*$', '', text) + text = re.sub('^#.*', '', text, flags=re.MULTILINE) match = re.match(r'^\s*__version__\s*=\s*(["\'])([\d\.]+)\1$', text) if match is None: msg = 'Malformed _version.py file!'