diff --git a/comfy_cli/registry/config_parser.py b/comfy_cli/registry/config_parser.py index 7e9a104..4bcdfd5 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].classifiers 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