comfy-cli icon indicating copy to clipboard operation
comfy-cli copied to clipboard

TODO: Remove `click` dep when `typer` is compatible with it again.

Open polarathene opened this issue 6 months ago • 3 comments

This issue is a reminder to remove click at a later date. Presently it is required to be version pinned for the CLI to work at all.


The typer dependency recently broke with a change introduced by click 8.1.8 => 8.2.0. Until that it is smoothed out upstream, the workaround for comfy-cli was to add that click dep as a pinned dependency:

https://github.com/Comfy-Org/comfy-cli/blob/67f880dc12d714ee1f25056336327e31d4364dc4/pyproject.toml#L47

polarathene avatar May 14 '25 01:05 polarathene

8.2.0 is considered a feature release, which as the release notes mention permit breaking changes 😕

This is the Click 8.2.0 feature release. A feature release may include new features, remove previously deprecated code, add new deprecation, or introduce potentially breaking changes.


The relevant PR to track for typer is here: https://github.com/fastapi/typer/pull/1145

polarathene avatar May 14 '25 02:05 polarathene

@polarathene Would you be interested to help maintain comfy-cli? Feel free to send me an email [email protected]!

robinjhuang avatar May 15 '25 19:05 robinjhuang

Would you be interested to help maintain comfy-cli?

I'm not that confident in Python, but apart from that I'm already stretched with my OSS commitments elsewhere, maybe in the future if I can spare the time. I would like to see comfy-cli to improve and stay healthy/useful, but most projects I've already been added or offered maintainer status I've rarely had time to contribute due to my current backlog 😅


I do plan to assist with pushing forward for an official ComfyUI container image, where I could probably assist with maintenance if interested.

As I explore that, I think a light-weight container with comfy-cli might also be interesting (it'd technically avoid these breakage concerns with the CLI install, and could offer a more secure runtime environment). If you'd be interested I could contribute a GH workflow + Dockerfile to automate builds and releases for that, it shouldn't be much of a maintenance burden once setup.

polarathene avatar May 15 '25 22:05 polarathene