Skip to content

Commit d8ef3a7

Browse files
committed
feat(config_parser.py): add project classifiers to enhance package metadata and compatibility information
1 parent 1583a58 commit d8ef3a7

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

comfy_cli/registry/config_parser.py

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,33 @@ def initialize_project_config():
122122
license_table = tomlkit.inline_table()
123123
license_table["file"] = "LICENSE"
124124
project["license"] = license_table
125+
126+
# 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+
)
125152

126153
tool = document.get("tool", tomlkit.table())
127154
comfy = tool.get("comfy", tomlkit.table())

0 commit comments

Comments
 (0)