Compare commits

..

No commits in common. "c83b0a4bc7c094138ce13e9e298e49b850f9e791" and "42937ece1ba47c51110c4b4b7ec15f5b24777b86" have entirely different histories.

2 changed files with 2 additions and 3 deletions

View File

@ -1 +1 @@
__version__ = '0.1.7' __version__ = '0.1.6'

View File

@ -85,8 +85,7 @@ PACKAGE_DESCRIPTION_SHORT = """
A code automation tool that integrates Gitea with Aider to automatically solve issues.""".strip() A code automation tool that integrates Gitea with Aider to automatically solve issues.""".strip()
def parse_version_file(text: str) -> str: def parse_version_file(text: str) -> str:
text = re.sub('^#.*', '', text, flags=re.MULTILINE) match = re.match(r'^__version__\s*=\s*(["\'])([\d\.]+)\1$', text)
match = re.match(r'^\s*__version__\s*=\s*(["\'])([\d\.]+)\1$', text)
if match is None: if match is None:
msg = 'Malformed _version.py file!' msg = 'Malformed _version.py file!'
raise Exception(msg) raise Exception(msg)