From 28ffece647fc06ab51296fe7c50e0a5f801ce502 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Tue, 27 Aug 2024 05:34:43 -0700 Subject: [PATCH] feat: add install_from_main_branch() function --- aider/versioncheck.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/aider/versioncheck.py b/aider/versioncheck.py index 3f69aeb6f..99838d08a 100644 --- a/aider/versioncheck.py +++ b/aider/versioncheck.py @@ -9,6 +9,17 @@ import aider from aider import utils from aider.dump import dump # noqa: F401 +def install_from_main_branch(io): + """ + Install the latest version of aider from the main branch of the GitHub repository. + """ + return utils.check_pip_install_extra( + io, + "aider", + "Installing the latest version from the main branch...", + ["--upgrade", "git+https://github.com/paul-gauthier/aider.git"] + ) + def check_version(io, just_check=False, verbose=False): fname = Path.home() / ".aider" / "caches" / "versioncheck"