diff --git a/setup.py b/setup.py index 4583e88..6338b36 100644 --- a/setup.py +++ b/setup.py @@ -30,7 +30,6 @@ Defined hierarchy: PACKAGE_DESCRIPTION_SHORT = """ Python library defining base types for financial processing.""".strip() - def parse_version_file(text: str) -> str: match = re.match(r'^__version__\s*=\s*(["\'])([\d\.]+)\1$', text) if match is None: @@ -38,7 +37,6 @@ def parse_version_file(text: str) -> str: raise Exception(msg) return match.group(2) - with open(PACKAGE_NAME + '/_version.py') as f: version = parse_version_file(f.read())