chore: prepare package

This commit is contained in:
bojiang
2024-11-06 16:43:58 +08:00
parent 2743dfac31
commit 7fd49cd7e7
4 changed files with 44 additions and 1 deletions
+3
View File
@@ -0,0 +1,3 @@
[build-system]
requires = ["setuptools>=45", "wheel", "pip"]
build-backend = "setuptools.build_meta"
+20
View File
@@ -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
+19
View File
@@ -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",
]
@@ -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
"""