Skip to content

Commit c4370bc

Browse files
author
coderfromthenorth93
committed
fix bug
1 parent f7acab8 commit c4370bc

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

comfy_cli/registry/config_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ def extract_node_configuration(
240240
dep for dep in dependencies if not (isinstance(dep, str) and dep.startswith("comfyui-frontend-package"))
241241
]
242242

243-
supported_comfyui_version = data.get("tool", {}).get("requires-comfyui", "")
243+
supported_comfyui_version = data.get("tool", {}).get("comfy", {}).get("requires-comfyui", "")
244244

245245
classifiers = project_data.get("classifiers", [])
246246
supported_os = validate_and_extract_os_classifiers(classifiers)

tests/comfy_cli/registry/test_config_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def test_extract_node_configuration_with_comfyui_version():
206206

207207

208208
def test_extract_node_configuration_with_requires_comfyui():
209-
mock_data = {"project": {}, "tool": {"requires-comfyui": "2.0.0"}}
209+
mock_data = {"project": {}, "tool": {"comfy": {"requires-comfyui": "2.0.0"}}}
210210
with (
211211
patch("os.path.isfile", return_value=True),
212212
patch("builtins.open", mock_open()),

0 commit comments

Comments
 (0)