From 159ae79e696931663833cffea79f71cc3733b96f Mon Sep 17 00:00:00 2001 From: Maxed-Out-99 Date: Tue, 20 Jan 2026 18:49:14 -0800 Subject: [PATCH] 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. --- __init__.py | 19 ------------------- pyproject.toml | 2 +- 2 files changed, 1 insertion(+), 20 deletions(-) diff --git a/__init__.py b/__init__.py index cae2424..2b05c56 100644 --- a/__init__.py +++ b/__init__.py @@ -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", diff --git a/pyproject.toml b/pyproject.toml index ae40aa5..10976c4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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)