Compare commits
3 Commits
42937ece1b
...
c83b0a4bc7
Author | SHA1 | Date | |
---|---|---|---|
c83b0a4bc7 | |||
1a08677ea2 | |||
7fcb9acb94 |
|
@ -1 +1 @@
|
|||
__version__ = '0.1.6'
|
||||
__version__ = '0.1.7'
|
||||
|
|
3
setup.py
3
setup.py
|
@ -85,7 +85,8 @@ 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)
|
||||
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!'
|
||||
raise Exception(msg)
|
||||
|
|
Loading…
Reference in New Issue
Block a user