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