From e71f3774bac44b6beb5d97f137441532055dfaac Mon Sep 17 00:00:00 2001 From: "Dr.Lt.Data" Date: Thu, 3 Jul 2025 12:32:50 +0900 Subject: [PATCH] modified: If `uv` is available, set `use_uv` to `True` by default. --- glob/manager_core.py | 8 +++++--- pyproject.toml | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/glob/manager_core.py b/glob/manager_core.py index ba719219..7a0f2aaf 100644 --- a/glob/manager_core.py +++ b/glob/manager_core.py @@ -43,7 +43,7 @@ import manager_downloader from node_package import InstalledNodePackage -version_code = [3, 33, 4] +version_code = [3, 33, 5] version_str = f"V{version_code[0]}.{version_code[1]}" + (f'.{version_code[2]}' if len(version_code) > 2 else '') @@ -1738,12 +1738,14 @@ def read_config(): } except Exception: - manager_util.use_uv = False + import importlib.util + manager_util.use_uv = importlib.util.find_spec("uv") + return { 'http_channel_enabled': False, 'preview_method': manager_funcs.get_current_preview_method(), 'git_exe': '', - 'use_uv': False, + 'use_uv': manager_util.use_uv, 'channel_url': DEFAULT_CHANNEL, 'default_cache_as_channel_url': False, 'share_option': 'all', diff --git a/pyproject.toml b/pyproject.toml index 463a4ae9..56811c7f 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 = "3.33.4" +version = "3.33.5" license = { file = "LICENSE.txt" } dependencies = ["GitPython", "PyGithub", "matrix-client==0.4.0", "transformers", "huggingface-hub>0.20", "typer", "rich", "typing-extensions", "toml", "uv", "chardet"]