Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions comfy_cli/registry/config_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@
comfy["Icon"] = ""
comfy["includes"] = tomlkit.array()

# Add uncommentable hint for ComfyUI version compatibility, below of "[tool.comfy].includes" field.
comfy["includes"].comment("""

Check warning on line 49 in comfy_cli/registry/config_parser.py

View check run for this annotation

Codecov / codecov/patch

comfy_cli/registry/config_parser.py#L49

Added line #L49 was not covered by tests
# "requires-comfyui" = ">=1.0.0" # ComfyUI version compatibility
""")

tool.add("comfy", comfy)
document.add("tool", tool)

Expand Down Expand Up @@ -181,6 +186,9 @@
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"

Check warning on line 190 in comfy_cli/registry/config_parser.py

View check run for this annotation

Codecov / codecov/patch

comfy_cli/registry/config_parser.py#L189-L190

Added lines #L189 - L190 were not covered by tests

project["urls"] = urls
project["name"] = sanitize_node_name(repo_name)
project["description"] = ""
Expand All @@ -191,6 +199,36 @@
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("""

Check warning on line 213 in comfy_cli/registry/config_parser.py

View check run for this annotation

Codecov / codecov/patch

comfy_cli/registry/config_parser.py#L213

Added line #L213 was not covered by tests
# 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
Expand Down