feat: add install_from_main_branch() function

This commit is contained in:
Paul Gauthier (aider) 2024-08-27 05:34:43 -07:00
parent 40be2d2100
commit 28ffece647

View file

@ -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"