diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..2626bc4 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["setuptools>=45", "wheel", "pip"] +build-backend = "setuptools.build_meta" diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..e5f9f87 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,20 @@ +[metadata] +name = comfyui_idl +version = attr: comfyui_idl.__version__ +author = Frost Ming +author_email = frost@bentoml.com +description = ComfyUI Interface Definition Language +long_description = file: README.md +long_description_content_type = text/markdown +url = https://github.com/bentoml/ComfyUI-IDL +classifiers = + Programming Language :: Python :: 3 + License :: OSI Approved :: MIT License + Operating System :: OS Independent +[options] +package_dir = src +packages = find: +python_requires = >=3.8 + +[options.packages.find] +where = src diff --git a/src/comfyui_idl/__init__.py b/src/comfyui_idl/__init__.py new file mode 100644 index 0000000..459c402 --- /dev/null +++ b/src/comfyui_idl/__init__.py @@ -0,0 +1,19 @@ +__version__ = "0.1.0" + + +from utils import ( + parse_workflow, + generate_input_model, + populate_workflow_inputs, + configure_workflow_outputs, + retrieve_workflow_outputs, +) + + +__all__ = [ + "parse_workflow", + "generate_input_model", + "populate_workflow_inputs", + "configure_workflow_outputs", + "retrieve_workflow_outputs", +] diff --git a/comfyui_idl/__init__.py b/src/comfyui_idl/utils.py similarity index 96% rename from comfyui_idl/__init__.py rename to src/comfyui_idl/utils.py index 254d00d..a23632b 100644 --- a/comfyui_idl/__init__.py +++ b/src/comfyui_idl/utils.py @@ -1,6 +1,7 @@ from typing import TYPE_CHECKING import copy +__version__ = "0.1.0" if TYPE_CHECKING: from pydantic import BaseModel @@ -69,7 +70,7 @@ def configure_workflow_outputs(workflow: dict, output_path: Path) -> dict: return workflow_copy -def retrieve_workflow_output(workflow: dict, output_path: Path) -> Path: +def retrieve_workflow_outputs(workflow: dict, output_path: Path) -> Path: """ Get the output file by name from the workflow """