From fa74736e02ef1a1f391abae77e358a7179c9e45e Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Tue, 27 Aug 2024 08:46:05 -0700 Subject: [PATCH] feat: add install_upgrade function to install latest version of aider-chat --- aider/versioncheck.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/aider/versioncheck.py b/aider/versioncheck.py index d5f8ddd5f..a63e44771 100644 --- a/aider/versioncheck.py +++ b/aider/versioncheck.py @@ -22,6 +22,18 @@ def install_from_main_branch(io): ) +def install_upgrade(io): + """ + Install the latest version of aider from PyPI. + """ + return utils.check_pip_install_extra( + io, + None, + "Install the latest version of aider from PyPI?", + ["--upgrade", "aider-chat"], + ) + + def check_version(io, just_check=False, verbose=False): fname = Path.home() / ".aider" / "caches" / "versioncheck" if not just_check and fname.exists():