mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-20 12:24:59 +00:00
prep bump script
This commit is contained in:
parent
a31ccaa083
commit
ada694a75d
1 changed files with 3 additions and 3 deletions
|
@ -95,15 +95,15 @@ def main():
|
|||
f"{new_version.major}.{new_version.minor}.{new_version.micro + 1}"
|
||||
)
|
||||
|
||||
with open("aider/__init__.py", "r") as f:
|
||||
content = f.read()
|
||||
from aider import __version__ as current_version
|
||||
|
||||
current_version = re.search(r'__version__ = "(.+?)"', content).group(1)
|
||||
if new_version <= version.parse(current_version):
|
||||
raise ValueError(
|
||||
f"New version {new_version} must be greater than the current version {current_version}"
|
||||
)
|
||||
|
||||
with open("aider/__init__.py", "r") as f:
|
||||
content = f.read()
|
||||
updated_content = re.sub(r'__version__ = ".+?"', f'__version__ = "{new_version}"', content)
|
||||
|
||||
print("Updating aider/__init__.py with new version:")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue