From d09d281a8dcbe43062ec6b33b9995574b203d55e Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Wed, 4 Dec 2024 09:09:56 -0800 Subject: [PATCH] fix: update version file path and add debug logging for version checks --- aider/__init__.py | 2 ++ scripts/versionbump.py | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/aider/__init__.py b/aider/__init__.py index 56b42b0a6..8b887a80f 100644 --- a/aider/__init__.py +++ b/aider/__init__.py @@ -12,6 +12,8 @@ if type(__version__) is not str: __version__ = safe_version + "+type" else: try: + print(__version__) + print(safe_version) if version.parse(__version__) < version.parse(safe_version): __version__ = safe_version + "+less" except Exception: diff --git a/scripts/versionbump.py b/scripts/versionbump.py index 018d238a1..7e09e1af1 100755 --- a/scripts/versionbump.py +++ b/scripts/versionbump.py @@ -154,8 +154,8 @@ def main(): if not dry_run: subprocess.run(cmd, check=True) - # Remove aider/__version__.py if it exists - version_file = "aider/__version__.py" + # 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: