chore: prepare package
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
[build-system]
|
||||
requires = ["setuptools>=45", "wheel", "pip"]
|
||||
build-backend = "setuptools.build_meta"
|
||||
@@ -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
|
||||
@@ -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
|
||||
"""
|
||||
Reference in New Issue
Block a user