Skip to content

Conversation

@jtydhr88
Copy link
Contributor

@jtydhr88 jtydhr88 commented Jun 10, 2025

Two changes here:

  1. improve the logic of parsing pyproject license, as tested, some custom nodes, for example, https://github.com/cubiq/ComfyUI_IPAdapter_plus/blob/a0f451a5113cf9becb0847b92884cb10cbdec0ef/pyproject.toml#L5 using license = "GPL-3.0 license" format which is not allowed previously (has validation error).
  2. Automatically register web folder from pyproject if web="xx" configured in pyproject.toml, which is requested by @robinjhuang

It should have cli PR here Comfy-Org/comfy-cli#284 merged at the same time

Tested with Comfy-Org/ComfyUI-React-Extension-Template#12

Additonally, why do we still need this web folder read from pyproject after we have the logic of hasattr(module, "WEB_DIRECTORY") below?
From my understanding, the biggest benefit is that pyproject files can be used for ComfyRegister, and we can do additional security checks on these frontend files on the server side in the future.

@comfyanonymous
Copy link
Member

Can you fix it?

Copy link
Member

@guill guill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@comfyanonymous comfyanonymous merged commit 9685d4f into Comfy-Org:master Jun 11, 2025
5 checks passed
comfyanonymous added a commit that referenced this pull request Jun 11, 2025
comfyanonymous added a commit that referenced this pull request Jun 11, 2025
@comfyanonymous
Copy link
Member

I reverted it, can you make it not completely fail if the dependency is missing and warn the user to update the requirements.txt ?

@jtydhr88
Copy link
Contributor Author

Sure, will do soon

adlerfaulkner pushed a commit to LucaLabsInc/ComfyUI that referenced this pull request Oct 16, 2025
* auto register web folder from pyproject

* need pydantic-settings as dependency
adlerfaulkner pushed a commit to LucaLabsInc/ComfyUI that referenced this pull request Oct 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants