This commit is contained in:
Paul Gauthier 2024-11-21 12:25:17 -08:00
parent 1ed48de928
commit 5cb9b242e2

View file

@ -109,14 +109,11 @@ def main():
print("Updating aider/__init__.py with new version:")
print(updated_content)
# if not dry_run:
# with open("aider/__init__.py", "w") as f:
# f.write(updated_content)
if not dry_run:
with open("aider/__init__.py", "w") as f:
f.write(updated_content)
git_commands = [
["git", "push", "origin"],
]
[
["git", "add", "aider/__init__.py"],
["git", "commit", "-m", f"version bump to {new_version}"],
["git", "tag", f"v{new_version}"],
@ -129,10 +126,6 @@ def main():
if not dry_run:
subprocess.run(
cmd,
text=True,
# shell=True,
encoding="utf-8",
errors="replace",
check=True,
)