mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-25 06:44:59 +00:00
feat: remove aider/__version__.py after version bump
This commit is contained in:
parent
5420f67b2b
commit
fb1a9254c7
1 changed files with 10 additions and 0 deletions
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
import datetime
|
import datetime
|
||||||
|
import os
|
||||||
import re
|
import re
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
|
@ -150,6 +151,15 @@ def main():
|
||||||
if not dry_run:
|
if not dry_run:
|
||||||
subprocess.run(cmd, check=True)
|
subprocess.run(cmd, check=True)
|
||||||
|
|
||||||
|
# Remove aider/__version__.py if it exists
|
||||||
|
version_file = "aider/__version__.py"
|
||||||
|
if os.path.exists(version_file):
|
||||||
|
print(f"Removing {version_file}")
|
||||||
|
if not dry_run:
|
||||||
|
os.remove(version_file)
|
||||||
|
subprocess.run(["git", "add", version_file], check=True)
|
||||||
|
subprocess.run(["git", "commit", "-m", f"Remove {version_file}"], check=True)
|
||||||
|
subprocess.run(["git", "push", "origin", "--no-verify"], check=True)
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
main()
|
main()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue