diff --git a/setup.py b/setup.py index 491f959..330fa53 100644 --- a/setup.py +++ b/setup.py @@ -84,7 +84,6 @@ The tool uses environment variables for sensitive information: PACKAGE_DESCRIPTION_SHORT = """ A code automation tool that integrates Gitea with Aider to automatically solve issues.""".strip() - def parse_version_file(text: str) -> str: match = re.match(r'^__version__\s*=\s*(["\'])([\d\.]+)\1$', text) if match is None: @@ -92,7 +91,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())