187 lines
4.2 KiB
TOML
187 lines
4.2 KiB
TOML
[build-system]
|
|
requires = ["setuptools>=61.0", "wheel"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[project]
|
|
name = "comfyui-http"
|
|
version = "2.0.0"
|
|
description = "HTTP nodes for ComfyUI - enabling seamless web API integration in your ComfyUI workflows"
|
|
readme = "README.md"
|
|
license = {text = "MIT"}
|
|
authors = [
|
|
{name = "wawahuy", email = "nguyengiahuy16@gmail.com"}
|
|
]
|
|
maintainers = [
|
|
{name = "wawahuy", email = "nguyengiahuy16@gmail.com"}
|
|
]
|
|
keywords = [
|
|
"comfyui",
|
|
"http",
|
|
"api",
|
|
"workflow",
|
|
"automation",
|
|
"image-processing",
|
|
"ai",
|
|
"machine-learning"
|
|
]
|
|
classifiers = [
|
|
"Development Status :: 4 - Beta",
|
|
"Intended Audience :: Developers",
|
|
"License :: OSI Approved :: MIT License",
|
|
"Operating System :: OS Independent",
|
|
"Programming Language :: Python :: 3",
|
|
"Programming Language :: Python :: 3.8",
|
|
"Programming Language :: Python :: 3.9",
|
|
"Programming Language :: Python :: 3.10",
|
|
"Programming Language :: Python :: 3.11",
|
|
"Programming Language :: Python :: 3.12",
|
|
"Topic :: Software Development :: Libraries :: Python Modules",
|
|
"Topic :: Scientific/Engineering :: Artificial Intelligence",
|
|
"Topic :: Multimedia :: Graphics",
|
|
]
|
|
requires-python = ">=3.8"
|
|
dependencies = [
|
|
"requests>=2.25.0",
|
|
"pillow>=8.0.0",
|
|
"numpy>=1.19.0",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
dev = [
|
|
"pytest>=7.0.0",
|
|
"pytest-cov>=4.0.0",
|
|
"black>=22.0.0",
|
|
"isort>=5.10.0",
|
|
"flake8>=5.0.0",
|
|
"mypy>=1.0.0",
|
|
"pre-commit>=2.20.0",
|
|
]
|
|
test = [
|
|
"pytest>=7.0.0",
|
|
"pytest-cov>=4.0.0",
|
|
"pytest-mock>=3.8.0",
|
|
"requests-mock>=1.9.0",
|
|
]
|
|
docs = [
|
|
"sphinx>=5.0.0",
|
|
"sphinx-rtd-theme>=1.0.0",
|
|
"myst-parser>=0.18.0",
|
|
]
|
|
|
|
[project.urls]
|
|
Homepage = "https://github.com/wawahuy/ComfyUI-HTTP"
|
|
Documentation = "https://github.com/wawahuy/ComfyUI-HTTP#readme"
|
|
Repository = "https://github.com/wawahuy/ComfyUI-HTTP"
|
|
"Bug Tracker" = "https://github.com/wawahuy/ComfyUI-HTTP/issues"
|
|
Changelog = "https://github.com/wawahuy/ComfyUI-HTTP/blob/main/CHANGELOG.md"
|
|
|
|
[tool.comfy]
|
|
PublisherId = "wawahuy"
|
|
DisplayName = "ComfyUI-HTTP"
|
|
Icon = ""
|
|
|
|
[tool.setuptools.packages.find]
|
|
where = ["."]
|
|
include = ["*"]
|
|
exclude = ["tests*", "docs*"]
|
|
|
|
[tool.setuptools.package-data]
|
|
"*" = ["*.json", "*.md"]
|
|
|
|
# Black configuration
|
|
[tool.black]
|
|
line-length = 88
|
|
target-version = ['py38', 'py39', 'py310', 'py311']
|
|
include = '\.pyi?$'
|
|
extend-exclude = '''
|
|
/(
|
|
# directories
|
|
\.eggs
|
|
| \.git
|
|
| \.hg
|
|
| \.mypy_cache
|
|
| \.tox
|
|
| \.venv
|
|
| build
|
|
| dist
|
|
| __pycache__
|
|
)/
|
|
'''
|
|
|
|
# isort configuration
|
|
[tool.isort]
|
|
profile = "black"
|
|
multi_line_output = 3
|
|
line_length = 88
|
|
include_trailing_comma = true
|
|
force_grid_wrap = 0
|
|
use_parentheses = true
|
|
ensure_newline_before_comments = true
|
|
|
|
# MyPy configuration
|
|
[tool.mypy]
|
|
python_version = "3.8"
|
|
warn_return_any = true
|
|
warn_unused_configs = true
|
|
disallow_untyped_defs = true
|
|
disallow_incomplete_defs = true
|
|
check_untyped_defs = true
|
|
disallow_untyped_decorators = true
|
|
no_implicit_optional = true
|
|
warn_redundant_casts = true
|
|
warn_unused_ignores = true
|
|
warn_no_return = true
|
|
warn_unreachable = true
|
|
strict_equality = true
|
|
|
|
[[tool.mypy.overrides]]
|
|
module = ["comfyui.*", "folder_paths.*"]
|
|
ignore_missing_imports = true
|
|
|
|
# Pytest configuration
|
|
[tool.pytest.ini_options]
|
|
minversion = "7.0"
|
|
addopts = "-ra -q --strict-markers --strict-config"
|
|
testpaths = ["tests"]
|
|
python_files = ["test_*.py", "*_test.py"]
|
|
python_classes = ["Test*"]
|
|
python_functions = ["test_*"]
|
|
markers = [
|
|
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
|
|
"integration: marks tests as integration tests",
|
|
"unit: marks tests as unit tests",
|
|
]
|
|
|
|
# Coverage configuration
|
|
[tool.coverage.run]
|
|
source = ["."]
|
|
omit = [
|
|
"*/tests/*",
|
|
"*/test_*",
|
|
"*/__pycache__/*",
|
|
"*/venv/*",
|
|
"*/env/*",
|
|
"setup.py",
|
|
]
|
|
|
|
[tool.coverage.report]
|
|
exclude_lines = [
|
|
"pragma: no cover",
|
|
"def __repr__",
|
|
"if self.debug:",
|
|
"if settings.DEBUG",
|
|
"raise AssertionError",
|
|
"raise NotImplementedError",
|
|
"if 0:",
|
|
"if __name__ == .__main__.:",
|
|
"class .*\\bProtocol\\):",
|
|
"@(abc\\.)?abstractmethod",
|
|
]
|
|
|
|
# Flake8 configuration
|
|
[tool.flake8]
|
|
max-line-length = 88
|
|
extend-ignore = ["E203", "W503"]
|
|
per-file-ignores = [
|
|
"__init__.py:F401",
|
|
] |