Remove optional test node imports from __init__.py
Eliminates the conditional import and mapping updates for test nodes in __init__.py, simplifying the initialization logic. Bumps package version to 1.6.1 in pyproject.toml.
This commit is contained in:
-19
@@ -10,23 +10,6 @@ from .wan22nodes import (
|
||||
NODE_CLASS_MAPPINGS as WAN22_NODE_CLASS_MAPPINGS,
|
||||
NODE_DISPLAY_NAME_MAPPINGS as WAN22_NODE_DISPLAY_NAME_MAPPINGS,
|
||||
)
|
||||
try:
|
||||
from .testing.testnodes import (
|
||||
NODE_CLASS_MAPPINGS as TEST_NODE_CLASS_MAPPINGS,
|
||||
NODE_DISPLAY_NAME_MAPPINGS as TEST_NODE_DISPLAY_NAME_MAPPINGS,
|
||||
)
|
||||
except ModuleNotFoundError as exc:
|
||||
missing_test_pkg = {
|
||||
f"{__package__}.testing",
|
||||
f"{__package__}.testing.testnodes",
|
||||
"testing",
|
||||
"testing.testnodes",
|
||||
}
|
||||
if exc.name not in missing_test_pkg:
|
||||
raise
|
||||
# Optional test nodes are absent in non-dev installs.
|
||||
TEST_NODE_CLASS_MAPPINGS = {}
|
||||
TEST_NODE_DISPLAY_NAME_MAPPINGS = {}
|
||||
|
||||
WEB_DIRECTORY = "web"
|
||||
|
||||
@@ -35,13 +18,11 @@ NODE_CLASS_MAPPINGS = {}
|
||||
NODE_CLASS_MAPPINGS.update(MXD_NODE_CLASS_MAPPINGS)
|
||||
NODE_CLASS_MAPPINGS.update(MEDIA_NODE_CLASS_MAPPINGS)
|
||||
NODE_CLASS_MAPPINGS.update(WAN22_NODE_CLASS_MAPPINGS)
|
||||
NODE_CLASS_MAPPINGS.update(TEST_NODE_CLASS_MAPPINGS)
|
||||
|
||||
NODE_DISPLAY_NAME_MAPPINGS = {}
|
||||
NODE_DISPLAY_NAME_MAPPINGS.update(MXD_NODE_DISPLAY_NAME_MAPPINGS)
|
||||
NODE_DISPLAY_NAME_MAPPINGS.update(MEDIA_NODE_DISPLAY_NAME_MAPPINGS)
|
||||
NODE_DISPLAY_NAME_MAPPINGS.update(WAN22_NODE_DISPLAY_NAME_MAPPINGS)
|
||||
NODE_DISPLAY_NAME_MAPPINGS.update(TEST_NODE_DISPLAY_NAME_MAPPINGS)
|
||||
|
||||
__all__ = [
|
||||
"NODE_CLASS_MAPPINGS",
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
[project]
|
||||
name = "maxedout"
|
||||
description = "Custom ComfyUI nodes used in Maxed Out workflows (SDXL, Flux, Wan 2.2, etc.)"
|
||||
version = "1.6.0"
|
||||
version = "1.6.1"
|
||||
license = {file = "LICENSE"}
|
||||
# classifiers = [
|
||||
# # For OS-independent nodes (works on all operating systems)
|
||||
|
||||
Reference in New Issue
Block a user