diff --git a/pyproject.toml b/pyproject.toml index 234e1fc..834620b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,7 +2,7 @@ name = "ausboss-nodes" # Manager/registry search matches against this text, so it names the actual # nodes instead of describing the collection abstractly. -description = "ComfyUI-AusBoss (AusBoss nodes): image and video nodes with compact controls: Image and Video Crop + Rotate + Pad (frame or clip), Load Image + Pad, Image Folder (run a workflow on each picture you pick from a folder), Image Resize, Align Image, Image Size, Color Match, Image Compare A/B, Realign to Source (experimental: lines an edited picture back up with the original), Save Image (PNG, lossless WebP/JXL, exact names, captions), Load Video, Save Video, Select Frame, Frame Interpolate, Mask Refine, Mask by Name (type what to find in a picture and get its mask, with ComfyUI's SAM 3), LaMa Inpaint, Crop For Inpaint, Stitch Inpaint, LoRA Loader, Krea 2 Encode and Outpaint Model Patch, Latent Size, Seed, Select Every Nth, Split Batch, Merge Batches, Text, Integer, Float, Math Expression, Show Text, Free Memory, Workflow Note, Callout (a canvas note with big text and arrows), Workflow Switches (turn parts of a workflow off and on), and Run Timer. Example workflows for Qwen Image 2.1, Krea 2, Klein 9B and LTX 2.3." +description = "ComfyUI-AusBoss (AusBoss nodes): image and video nodes with compact controls: Image and Video Crop + Rotate + Pad (frame or clip), Load Image + Pad, Image Folder (run a workflow on a folder of pictures), Image Resize, Align Image, Image Size, Color Match, Image Compare A/B, Realign to Source (experimental: lines an edited picture back up with the original), Save Image (PNG, lossless WebP/JXL, exact names, captions), Load Video, Save Video, Select Frame, Frame Interpolate, Mask Refine, Mask by Name (type what to find and get its mask, with ComfyUI's SAM 3), LaMa Inpaint, Crop For Inpaint, Stitch Inpaint, LoRA Loader, Krea 2 Encode and Outpaint Model Patch, Latent Size, Seed, Select Every Nth, Split Batch, Merge Batches, Text, Integer, Float, Math Expression, Show Text, Free Memory, Workflow Note, Callout (a note with big text and arrows), Workflow Switches (turn parts of a workflow off and on), and Run Timer. Example workflows for Qwen Image 2.1, Krea 2, Klein 9B and LTX 2.3." version = "2.8.0" # comfy-cli serializes this to JSON verbatim, so `file` publishes the literal # string {"file": "LICENSE"} to the registry listing. `text` puts a readable diff --git a/scripts/release_preflight.py b/scripts/release_preflight.py index 75b16a1..9b2de79 100644 --- a/scripts/release_preflight.py +++ b/scripts/release_preflight.py @@ -59,6 +59,17 @@ if match: else: errors.append('pyproject.toml has no version = "..." line') +# The Registry refuses an upload whose description is over 1000 bytes +# ("description is too long"), and it says so only after the version is +# on main. +DESCRIPTION_LIMIT = 1000 +match = re.search(rb'^description\s*=\s*"([^"]*)"', raw, re.MULTILINE) +if match and len(match.group(1)) > DESCRIPTION_LIMIT: + errors.append( + f"the pyproject description is {len(match.group(1))} bytes; " + f"the Registry takes {DESCRIPTION_LIMIT} at most" + ) + # --- 2. the frontend version constant matches -------------------------------- js_version = None try: diff --git a/tests/test_image_folder.py b/tests/test_image_folder.py index 1c47cbf..1c310c0 100644 --- a/tests/test_image_folder.py +++ b/tests/test_image_folder.py @@ -204,7 +204,8 @@ class LoadingTests(FolderCase): def test_a_turned_photo_comes_out_upright(self): path = self.root / "turned.jpg" photo = Image.new("RGB", (40, 20), (5, 5, 5)) - exif = photo.getexif(); exif[0x0112] = 6 + exif = photo.getexif() + exif[0x0112] = 6 photo.save(path, exif=exif) image, _mask = load_picture(path) self.assertEqual(tuple(image.shape), (1, 40, 20, 3))