开发
简体中文
pyproject.toml
[project]
[tool.comfy]
comfy node install <node-id>
name = "image-processor" # ✅ Good: Simple and clear name = "super-resolution" # ✅ Good: Describes functionality name = "ComfyUI-enhancer" # ❌ Bad: Includes ComfyUI name = "123-tool" # ❌ Bad: Starts with number
version = "1.0.0" # 初始版本 version = "1.1.0" # 添加新功能 version = "1.1.1" # 修复错误 version = "2.0.0" # 重大更改
license = { file = "LICENSE" } # ✅ 指向 LICENSE 文件 license = { file = "LICENSE.txt" } # ✅ 指向 LICENSE.txt 文件 license = "LICENSE" # ❌ 格式错误
license = { text = "MIT License" } # ✅ 正确格式 license = { text = "Apache-2.0" } # ✅ 正确格式 license = "MIT LICENSE" # ❌ 格式错误
description = "A super resolution node for enhancing image quality"
[project.urls] Repository = "https://github.com/username/repository"
[project.urls] Documentation = "https://github.com/username/repository/wiki" "Bug Tracker" = "https://github.com/username/repository/issues"
requires-python = ">=3.8" # Python 3.8 或更高版本 requires-python = ">=3.8,<3.11" # Python 3.8 到 3.11 之间(不包括 3.11)
comfyui-frontend-package
[project] dependencies = [ "comfyui-frontend-package>=1.20.0" # 需要前端 1.20.0 或更新版本 "comfyui-frontend-package<=1.21.6" # 限制前端版本最高到 1.21.6 "comfyui-frontend-package>=1.19,<1.22" # 适用于前端 1.19 到 1.21.x "comfyui-frontend-package~=1.20.0" # 兼容 1.20.x 但不包括 1.21.0 "comfyui-frontend-package!=1.21.3" # 适用于任何版本,除了 1.21.3 ]
[project] classifiers = [ # 适用于所有操作系统的节点 "Operating System :: OS Independent", # 或者对于特定操作系统的节点,指定支持的系统: "Operating System :: Microsoft :: Windows", # Windows specific "Operating System :: POSIX :: Linux", # Linux specific "Operating System :: MacOS", # macOS specific # GPU 加速器支持 "Environment :: GPU :: NVIDIA CUDA", # NVIDIA CUDA 支持 "Environment :: GPU :: AMD ROCm", # AMD ROCm 支持 "Environment :: GPU :: Intel Arc", # Intel Arc 支持 "Environment :: NPU :: Huawei Ascend", # 华为昇腾支持 "Environment :: GPU :: Apple Metal", # Apple Metal 支持 ]
PublisherId = "john-doe" # ✅ 匹配 GitHub 用户名 PublisherId = "image-wizard" # ✅ 唯一标识符
DisplayName = "Super Resolution Node"
Icon = "https://raw.githubusercontent.com/username/repo/main/icon.png"
Banner = "https://raw.githubusercontent.com/username/repo/main/banner.png"
<
>
<=
>=
~=
<>
!=
requires-comfyui = ">=1.0.0" # ComfyUI 1.0.0 或更高版本 requires-comfyui = ">=1.0.0,<2.0.0" # ComfyUI 1.0.0 到 2.0.0 之间(不包括 2.0.0) requires-comfyui = "~=1.0.0" # 兼容版本:1.0.0 或更新版本,但不包括 2.0.0 requires-comfyui = "!=1.2.3" # 任何版本,除了 1.2.3 requires-comfyui = ">0.1.3,<1.0.0" # 大于 0.1.3 且小于 1.0.0
includes = ['dist']
[project] name = "super-resolution-node" version = "1.0.0" description = "Enhance image quality using advanced super resolution techniques" license = { file = "LICENSE" } requires-python = ">=3.8" dependencies = [ "comfyui-frontend-package<=1.21.6" # 前端版本兼容性 ] classifiers = [ "Operating System :: OS Independent" # 适用于所有操作系统 ] dynamic = ["dependencies"] [tool.setuptools.dynamic] dependencies = {file = ["requirements.txt"]} [project.urls] Repository = "https://github.com/username/super-resolution-node" Documentation = "https://github.com/username/super-resolution-node/wiki" "Bug Tracker" = "https://github.com/username/super-resolution-node/issues" [tool.comfy] PublisherId = "image-wizard" DisplayName = "Super Resolution Node" Icon = "https://raw.githubusercontent.com/username/super-resolution-node/main/icon.png" Banner = "https://raw.githubusercontent.com/username/super-resolution-node/main/banner.png" requires-comfyui = ">=1.0.0" # ComfyUI 版本兼容性
此页面对您有帮助吗?