From 012fe6cd7ace3f5e409bc720716348bef7aba881 Mon Sep 17 00:00:00 2001 From: "Dr.Lt.Data" Date: Sat, 25 May 2024 16:47:54 +0900 Subject: [PATCH] feat: cm-cli - post-install --- cm-cli.py | 11 +++++++++++ glob/manager_core.py | 2 +- pyproject.toml | 2 +- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/cm-cli.py b/cm-cli.py index 093fa83f..d3dd05aa 100644 --- a/cm-cli.py +++ b/cm-cli.py @@ -939,6 +939,17 @@ def restore_dependencies(): i += 1 +@app.command( + "post-install", help="Install dependencies and execute installation script" +) +def post_install( + path: str = typer.Argument( + help="path to custom node", + )): + path = os.path.expanduser(path) + cm_ctx.post_install(path) + + @app.command( "install-deps", help="Install dependencies from dependencies file(.json) or workflow(.png/.json)", diff --git a/glob/manager_core.py b/glob/manager_core.py index 4e133b4f..27b47aae 100644 --- a/glob/manager_core.py +++ b/glob/manager_core.py @@ -23,7 +23,7 @@ import cm_global from manager_util import * -version = [2, 34, 1] +version = [2, 35] version_str = f"V{version[0]}.{version[1]}" + (f'.{version[2]}' if len(version) > 2 else '') comfyui_manager_path = os.path.abspath(os.path.join(os.path.dirname(__file__), '..')) diff --git a/pyproject.toml b/pyproject.toml index 8ca9c81c..a76f6e3e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "comfyui-manager" description = "ComfyUI-Manager provides features to install and manage custom nodes for ComfyUI, as well as various functionalities to assist with ComfyUI." -version = "2.34.1" +version = "2.35" license = "LICENSE" dependencies = ["GitPython", "PyGithub", "matrix-client==0.4.0", "transformers", "huggingface-hub>0.20", "typer", "rich", "typing-extensions"]