From 93f3f29f01ed0cb59ee85ad1fb30cd79763f1bab Mon Sep 17 00:00:00 2001 From: BRADSEC <7948876+bradsec@users.noreply.github.com> Date: Sat, 20 Jun 2026 19:20:02 +1000 Subject: [PATCH] refactor: rename resolution_selector.py to nodes.py, serve JS from ./js; bump 2.1.3 --- __init__.py | 4 ++-- {web/js => js}/resolution_selector.js | 0 resolution_selector.py => nodes.py | 0 pyproject.toml | 2 +- test_resolution_selector.py | 2 +- 5 files changed, 4 insertions(+), 4 deletions(-) rename {web/js => js}/resolution_selector.js (100%) rename resolution_selector.py => nodes.py (100%) diff --git a/__init__.py b/__init__.py index 1210d0b..02dd9e2 100644 --- a/__init__.py +++ b/__init__.py @@ -1,5 +1,5 @@ -from .resolution_selector import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS +from .nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS -WEB_DIRECTORY = "./web" +WEB_DIRECTORY = "./js" __all__ = ['NODE_CLASS_MAPPINGS', 'NODE_DISPLAY_NAME_MAPPINGS', 'WEB_DIRECTORY'] \ No newline at end of file diff --git a/web/js/resolution_selector.js b/js/resolution_selector.js similarity index 100% rename from web/js/resolution_selector.js rename to js/resolution_selector.js diff --git a/resolution_selector.py b/nodes.py similarity index 100% rename from resolution_selector.py rename to nodes.py diff --git a/pyproject.toml b/pyproject.toml index e52fb39..670ea2d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "comfyui_resolutionselectorplus" description = "Custom node for ComfyUI providing easy resolution and empty latent selection for image generation workflows." -version = "2.1.2" +version = "2.1.3" license = {file = "LICENSE"} [project.urls] diff --git a/test_resolution_selector.py b/test_resolution_selector.py index 6d6597d..970dac3 100644 --- a/test_resolution_selector.py +++ b/test_resolution_selector.py @@ -16,7 +16,7 @@ class MockTorch: sys.modules['torch'] = MockTorch() sys.modules['comfy'] = type('module', (), {'model_management': None})() -from resolution_selector import ( +from nodes import ( calculate_aspect_ratio, format_resolution, get_resolution_list,