fix: update version file path and add debug logging for version checks

This commit is contained in:
Paul Gauthier 2024-12-04 09:09:56 -08:00 committed by Paul Gauthier (aider)
parent 43f3f54063
commit d09d281a8d
2 changed files with 4 additions and 2 deletions

View file

@ -12,6 +12,8 @@ if type(__version__) is not str:
__version__ = safe_version + "+type" __version__ = safe_version + "+type"
else: else:
try: try:
print(__version__)
print(safe_version)
if version.parse(__version__) < version.parse(safe_version): if version.parse(__version__) < version.parse(safe_version):
__version__ = safe_version + "+less" __version__ = safe_version + "+less"
except Exception: except Exception:

View file

@ -154,8 +154,8 @@ 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 # Remove aider/_version.py if it exists
version_file = "aider/__version__.py" version_file = "aider/_version.py"
if os.path.exists(version_file): if os.path.exists(version_file):
print(f"Removing {version_file}") print(f"Removing {version_file}")
if not dry_run: if not dry_run: