diff --git a/__init__.py b/__init__.py index 4bdfa2a..21cfd7f 100644 --- a/__init__.py +++ b/__init__.py @@ -3,11 +3,11 @@ # Copyright (c) 2025 Instituto Nacional de Tecnologïa Industrial # License: GPL-3.0 # Project: ComfyUI-AudioBatch -from .src.nodes import nodes_audio, main_logger +from .src.nodes import nodes_audio, main_logger, __version__ from seconohe.register_nodes import register_nodes from seconohe import JS_PATH -NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS = register_nodes(main_logger, [nodes_audio]) +NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS = register_nodes(main_logger, [nodes_audio], version=__version__) WEB_DIRECTORY = JS_PATH __all__ = ['NODE_CLASS_MAPPINGS', 'NODE_DISPLAY_NAME_MAPPINGS'] diff --git a/pyproject.toml b/pyproject.toml index fa75fd3..1b9327d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,11 +12,16 @@ version = "1.3.0" # Deprecated mechanism, comfy-cli doesn't support SPDX license = { file = "LICENSE" } # Not really used, ComfyUI-Manager doesn't use it -dependencies = ["seconohe"] +# dependencies = ["seconohe>=1.0.2"] +# So we do it in the reverse way ... +dynamic = ["dependencies"] [project.urls] Repository = "https://github.com/set-soft/ComfyUI-AudioBatch" +[tool.setuptools.dynamic] +dependencies = {file = ["requirements.txt"]} + [tool.comfy] PublisherId = "set-soft" DisplayName = "Audio Batch" diff --git a/requirements.txt b/requirements.txt index 855032a..3d8f1ba 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ torch torchaudio numpy -seconohe +seconohe>=1.0.2