Skip to content

Commit 717164d

Browse files
committed
chore(config_parser.py): clean up commented-out classifiers and add a comment for requires-comfyui for better readability and maintainability
1 parent d8ef3a7 commit 717164d

File tree

1 file changed

+23
-27
lines changed

1 file changed

+23
-27
lines changed

comfy_cli/registry/config_parser.py

Lines changed: 23 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -122,38 +122,34 @@ def initialize_project_config():
122122
license_table = tomlkit.inline_table()
123123
license_table["file"] = "LICENSE"
124124
project["license"] = license_table
125-
125+
126126
# Classifiers
127-
# [project]
128-
# classifiers = [
129-
# # For OS-independent nodes (works on all operating systems)
130-
# "Operating System :: OS Independent",
131-
132-
# # OR for OS-specific nodes, specify the supported systems:
133-
# "Operating System :: Microsoft :: Windows", # Windows specific
134-
# "Operating System :: POSIX :: Linux", # Linux specific
135-
# "Operating System :: MacOS", # macOS specific
136-
137-
# # GPU Accelerator support
138-
# "Environment :: GPU :: NVIDIA CUDA", # NVIDIA CUDA support
139-
# "Environment :: GPU :: AMD ROCm", # AMD ROCm support
140-
# "Environment :: GPU :: Intel Arc", # Intel Arc support
141-
# "Environment :: NPU :: Huawei Ascend", # Huawei Ascend support
142-
# "Environment :: GPU :: Apple Metal", # Apple Metal support
143-
# ]
144-
project["classifiers"] = tomlkit.array(
145-
"Operating System :: OS Independent",
146-
"Environment :: GPU :: NVIDIA CUDA",
147-
"Environment :: GPU :: AMD ROCm",
148-
"Environment :: GPU :: Intel Arc",
149-
"Environment :: NPU :: Huawei Ascend",
150-
"Environment :: GPU :: Apple Metal",
151-
)
127+
128+
project["classifiers"] = tomlkit.array()
129+
project["classifiers"].comment("""
130+
# classifiers = [
131+
# # For OS-independent nodes (works on all operating systems)
132+
# "Operating System :: OS Independent",
133+
#
134+
# # OR for OS-specific nodes, specify the supported systems:
135+
# "Operating System :: Microsoft :: Windows", # Windows specific
136+
# "Operating System :: POSIX :: Linux", # Linux specific
137+
# "Operating System :: MacOS", # macOS specific
138+
#
139+
# # GPU Accelerator support
140+
# "Environment :: GPU :: NVIDIA CUDA", # NVIDIA CUDA support
141+
# "Environment :: GPU :: AMD ROCm", # AMD ROCm support
142+
# "Environment :: GPU :: Intel Arc", # Intel Arc support
143+
# "Environment :: NPU :: Huawei Ascend", # Huawei Ascend support
144+
# "Environment :: GPU :: Apple Metal", # Apple Metal support
145+
# ]
146+
""")
152147

153148
tool = document.get("tool", tomlkit.table())
154149
comfy = tool.get("comfy", tomlkit.table())
155150
comfy["DisplayName"] = repo_name
156-
comfy["requires-comfyui"] = ">=1.0.0" # ComfyUI version compatibility
151+
document.add(tomlkit.comment('"requires-comfyui" = ">=1.0.0" # ComfyUI version compatibility'))
152+
# comfy["requires-comfyui"] = ">=1.0.0" # ComfyUI version compatibility
157153

158154
tool["comfy"] = comfy
159155
document["tool"] = tool

0 commit comments

Comments
 (0)