Merge branch 'main' into chat-history

This commit is contained in:
Paul Gauthier 2023-07-20 09:55:26 -03:00
commit a1f2fc4482
4 changed files with 13 additions and 7 deletions

View file

@ -8,9 +8,16 @@ Aider makes it easy to
proposed by GPT without copy/pasting.
It also has features that [help GPT-4 understand and modify larger codebases](https://aider.chat/docs/ctags.html).
![aider screencast](assets/screencast.svg)
<p align="center">
<img src="assets/screencast.svg" alt="aider screencast">
</p>
<p align="center">
<a href="https://discord.gg/SqzfE6bw">
<img src="https://img.shields.io/badge/Join-Discord-blue.svg"/>
</a>
</p>
- [Discord](https://discord.gg/SqzfE6bw)
- [Getting started](#getting-started)
- [Example chat transcripts](#example-chat-transcripts)
- [Features](#features)

View file

@ -1 +1 @@
__version__ = "0.9.0-dev"
__version__ = "0.9.1-dev"

View file

@ -13,9 +13,7 @@ def check_version(print_cmd):
latest_version = data["info"]["version"]
current_version = aider.__version__
if packaging.version.parse(latest_version) <= packaging.version.parse(
current_version
):
if packaging.version.parse(latest_version) <= packaging.version.parse(current_version):
return
print_cmd(f"Newer version v{latest_version} is available. To upgrade, run:")

View file

@ -19,6 +19,7 @@ def main():
raise ValueError(f"Invalid version format, must be x.y.z: {new_version_str}")
new_version = version.parse(new_version_str)
incremented_version = version.Version(f"{new_version.major}.{new_version.minor}.{new_version.micro + 1}")
with open("aider/__init__.py", "r") as f:
content = f.read()
@ -51,7 +52,7 @@ def main():
subprocess.run(cmd, check=True)
updated_dev_content = re.sub(
r'__version__ = ".+?"', f'__version__ = "{new_version}-dev"', content
r'__version__ = ".+?"', f'__version__ = "{incremented_version}-dev"', content
)
print()