8000 Update pyproject specifications ver2 #281 by snomiao · Pull Request #285 · Comfy-Org/comfy-cli · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Update pyproject specifications ver2 #281 #285

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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].classfiers Classifiers uncommentable hint for OS/GPU support
Copy link
Preview
Copilot AI Jun 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a typo in the comment: 'classfiers' should be 'classifiers'.

Suggested change
# [project].classfiers Classifiers uncommentable hint for OS/GPU support
# [project].classifiers Classifiers uncommentable hint for OS/GPU support

Copilot uses AI. Check for mistakes.

# 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
0