From e8f8cb6ec37cbd6cbc954ce97d476c071cc6d4ed Mon Sep 17 00:00:00 2001 From: snomiao Date: Fri, 13 Jun 2025 16:52:29 +0000 Subject: [PATCH 1/2] feat(config_parser.py): add comments for ComfyUI version compatibility and project classifiers to improve documentation and usability chore(config_parser.py): enhance project URLs by adding Documentation and Bug Tracker links for better project navigation --- comfy_cli/registry/config_parser.py | 38 +++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/comfy_cli/registry/config_parser.py b/comfy_cli/registry/config_parser.py index 7e9a104..cdfef56 100644 --- a/comfy_cli/registry/config_parser.py +++ b/comfy_cli/registry/config_parser.py @@ -45,6 +45,11 @@ def create_comfynode_config(): comfy["Icon"] = "" comfy["includes"] = tomlkit.array() + # Add uncommentable hint for ComfyUI version compatibility, below of "[tool.comfy].includes" field. + comfy["includes"].comment(""" +# "requires-comfyui" = ">=1.0.0" # ComfyUI version compatibility +""") + tool.add("comfy", comfy) document.add("tool", tool) @@ -181,6 +186,9 @@ def initialize_project_config(): project = document.get("project", tomlkit.table()) urls = project.get("urls", tomlkit.table()) urls["Repository"] = git_remote_url + urls["Documentation"] = git_remote_url + "/wiki" + urls["Bug Tracker"] = git_remote_url + "/issues" + project["urls"] = urls project["name"] = sanitize_node_name(repo_name) project["description"] = "" @@ -191,6 +199,36 @@ def initialize_project_config(): license_table["file"] = "LICENSE" project["license"] = license_table + # [project].classfiers Classifiers uncommentable hint for OS/GPU support + # Attach classifiers comments to the project, below of "license" field. + # will generate a comment like this: + # + # [project] + # ... + # license = {file = "LICENSE"} + # # classifiers = [ + # # # For OS-independent nodes (works on all operating systems) + # ... + + project["license"].comment(""" +# classifiers = [ +# # For OS-independent nodes (works on all operating systems) +# "Operating System :: OS Independent", +# +# # OR for OS-specific nodes, specify the supported systems: +# "Operating System :: Microsoft :: Windows", # Windows specific +# "Operating System :: POSIX :: Linux", # Linux specific +# "Operating System :: MacOS", # macOS specific +# +# # GPU Accelerator support. Pick the ones that are supported by your extension. +# "Environment :: GPU :: NVIDIA CUDA", # NVIDIA CUDA support +# "Environment :: GPU :: AMD ROCm", # AMD ROCm support +# "Environment :: GPU :: Intel Arc", # Intel Arc support +# "Environment :: NPU :: Huawei Ascend", # Huawei Ascend support +# "Environment :: GPU :: Apple Metal", # Apple Metal support +# ] +""") + tool = document.get("tool", tomlkit.table()) comfy = tool.get("comfy", tomlkit.table()) comfy["DisplayName"] = repo_name From c542dc7d0031d6a03ece59c5cde96b463406faa2 Mon Sep 17 00:00:00 2001 From: snomiao Date: Sun, 29 Jun 2025 17:35:58 +0800 Subject: [PATCH 2/2] Update comfy_cli/registry/config_parser.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- comfy_cli/registry/config_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comfy_cli/registry/config_parser.py b/comfy_cli/registry/config_parser.py index cdfef56..4bcdfd5 100644 --- a/comfy_cli/registry/config_parser.py +++ b/comfy_cli/registry/config_parser.py @@ -199,7 +199,7 @@ def initialize_project_config(): license_table["file"] = "LICENSE" project["license"] = license_table - # [project].classfiers Classifiers uncommentable hint for OS/GPU support + # [project].classifiers Classifiers uncommentable hint for OS/GPU support # Attach classifiers comments to the project, below of "license" field. # will generate a comment like this: #