comfy-cli 1.2.2__tar.gz → 1.2.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {comfy_cli-1.2.2 → comfy_cli-1.2.3}/PKG-INFO +1 -1
- {comfy_cli-1.2.2 → comfy_cli-1.2.3}/comfy_cli/cmdline.py +9 -2
- {comfy_cli-1.2.2 → comfy_cli-1.2.3}/comfy_cli/standalone.py +15 -9
- {comfy_cli-1.2.2 → comfy_cli-1.2.3}/comfy_cli/uv.py +6 -6
- {comfy_cli-1.2.2 → comfy_cli-1.2.3}/comfy_cli.egg-info/PKG-INFO +1 -1
- {comfy_cli-1.2.2 → comfy_cli-1.2.3}/pyproject.toml +2 -2
- {comfy_cli-1.2.2 → comfy_cli-1.2.3}/LICENSE +0 -0
- {comfy_cli-1.2.2 → comfy_cli-1.2.3}/README.md +0 -0
- {comfy_cli-1.2.2 → comfy_cli-1.2.3}/comfy_cli/__init__.py +0 -0
- {comfy_cli-1.2.2 → comfy_cli-1.2.3}/comfy_cli/__main__.py +0 -0
- {comfy_cli-1.2.2 → comfy_cli-1.2.3}/comfy_cli/command/__init__.py +0 -0
- {comfy_cli-1.2.2 → comfy_cli-1.2.3}/comfy_cli/command/custom_nodes/__init__.py +0 -0
- {comfy_cli-1.2.2 → comfy_cli-1.2.3}/comfy_cli/command/custom_nodes/bisect_custom_nodes.py +0 -0
- {comfy_cli-1.2.2 → comfy_cli-1.2.3}/comfy_cli/command/custom_nodes/cm_cli_util.py +0 -0
- {comfy_cli-1.2.2 → comfy_cli-1.2.3}/comfy_cli/command/custom_nodes/command.py +0 -0
- {comfy_cli-1.2.2 → comfy_cli-1.2.3}/comfy_cli/command/install.py +0 -0
- {comfy_cli-1.2.2 → comfy_cli-1.2.3}/comfy_cli/command/launch.py +0 -0
- {comfy_cli-1.2.2 → comfy_cli-1.2.3}/comfy_cli/command/models/models.py +0 -0
- {comfy_cli-1.2.2 → comfy_cli-1.2.3}/comfy_cli/command/run.py +0 -0
- {comfy_cli-1.2.2 → comfy_cli-1.2.3}/comfy_cli/config_manager.py +0 -0
- {comfy_cli-1.2.2 → comfy_cli-1.2.3}/comfy_cli/constants.py +0 -0
- {comfy_cli-1.2.2 → comfy_cli-1.2.3}/comfy_cli/env_checker.py +0 -0
- {comfy_cli-1.2.2 → comfy_cli-1.2.3}/comfy_cli/file_utils.py +0 -0
- {comfy_cli-1.2.2 → comfy_cli-1.2.3}/comfy_cli/git_utils.py +0 -0
- {comfy_cli-1.2.2 → comfy_cli-1.2.3}/comfy_cli/logging.py +0 -0
- {comfy_cli-1.2.2 → comfy_cli-1.2.3}/comfy_cli/registry/__init__.py +0 -0
- {comfy_cli-1.2.2 → comfy_cli-1.2.3}/comfy_cli/registry/api.py +0 -0
- {comfy_cli-1.2.2 → comfy_cli-1.2.3}/comfy_cli/registry/config_parser.py +0 -0
- {comfy_cli-1.2.2 → comfy_cli-1.2.3}/comfy_cli/registry/types.py +0 -0
- {comfy_cli-1.2.2 → comfy_cli-1.2.3}/comfy_cli/tracking.py +0 -0
- {comfy_cli-1.2.2 → comfy_cli-1.2.3}/comfy_cli/typing.py +0 -0
- {comfy_cli-1.2.2 → comfy_cli-1.2.3}/comfy_cli/ui.py +0 -0
- {comfy_cli-1.2.2 → comfy_cli-1.2.3}/comfy_cli/update.py +0 -0
- {comfy_cli-1.2.2 → comfy_cli-1.2.3}/comfy_cli/utils.py +0 -0
- {comfy_cli-1.2.2 → comfy_cli-1.2.3}/comfy_cli/workspace_manager.py +0 -0
- {comfy_cli-1.2.2 → comfy_cli-1.2.3}/comfy_cli.egg-info/SOURCES.txt +0 -0
- {comfy_cli-1.2.2 → comfy_cli-1.2.3}/comfy_cli.egg-info/dependency_links.txt +0 -0
- {comfy_cli-1.2.2 → comfy_cli-1.2.3}/comfy_cli.egg-info/entry_points.txt +0 -0
- {comfy_cli-1.2.2 → comfy_cli-1.2.3}/comfy_cli.egg-info/requires.txt +0 -0
- {comfy_cli-1.2.2 → comfy_cli-1.2.3}/comfy_cli.egg-info/top_level.txt +0 -0
- {comfy_cli-1.2.2 → comfy_cli-1.2.3}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: comfy-cli
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.3
|
|
4
4
|
Summary: A CLI tool for installing and using ComfyUI.
|
|
5
5
|
Maintainer-email: Yoland Yan <yoland@drip.art>, James Kwon <hongilkwon316@gmail.com>, Robin Huang <robin@drip.art>, "Dr.Lt.Data" <dr.lt.data@gmail.com>
|
|
6
6
|
License: GPL-3.0-only
|
|
@@ -576,6 +576,13 @@ def standalone(
|
|
|
576
576
|
help="setuptools-style requirement specificer pointing to an instance of comfy-cli",
|
|
577
577
|
),
|
|
578
578
|
] = "comfy-cli",
|
|
579
|
+
pack_wheels: Annotated[
|
|
580
|
+
bool,
|
|
581
|
+
typer.Option(
|
|
582
|
+
show_default=False,
|
|
583
|
+
help="Pack requirement wheels in archive when creating standalone bundle",
|
|
584
|
+
),
|
|
585
|
+
] = False,
|
|
579
586
|
platform: Annotated[
|
|
580
587
|
Optional[constants.OS],
|
|
581
588
|
typer.Option(
|
|
@@ -605,10 +612,10 @@ def standalone(
|
|
|
605
612
|
|
|
606
613
|
if rehydrate:
|
|
607
614
|
sty = StandalonePython.FromTarball(fpath="python.tgz")
|
|
608
|
-
sty.rehydrate_comfy_deps()
|
|
615
|
+
sty.rehydrate_comfy_deps(packWheels=pack_wheels)
|
|
609
616
|
else:
|
|
610
617
|
sty = StandalonePython.FromDistro(platform=platform, proc=proc)
|
|
611
|
-
sty.dehydrate_comfy_deps(comfyDir=comfy_path, extraSpecs=cli_spec)
|
|
618
|
+
sty.dehydrate_comfy_deps(comfyDir=comfy_path, extraSpecs=[cli_spec], packWheels=pack_wheels)
|
|
612
619
|
sty.to_tarball()
|
|
613
620
|
|
|
614
621
|
|
|
@@ -115,7 +115,7 @@ class StandalonePython:
|
|
|
115
115
|
for pycache in self.rpath.glob("**/__pycache__"):
|
|
116
116
|
shutil.rmtree(pycache)
|
|
117
117
|
|
|
118
|
-
def run_module(self, mod: str, *args:
|
|
118
|
+
def run_module(self, mod: str, *args: str):
|
|
119
119
|
cmd: list[str] = [
|
|
120
120
|
str(self.executable),
|
|
121
121
|
"-m",
|
|
@@ -125,10 +125,10 @@ class StandalonePython:
|
|
|
125
125
|
|
|
126
126
|
subprocess.run(cmd, check=True)
|
|
127
127
|
|
|
128
|
-
def pip_install(self, *args:
|
|
128
|
+
def pip_install(self, *args: str):
|
|
129
129
|
self.run_module("pip", "install", *args)
|
|
130
130
|
|
|
131
|
-
def uv_install(self, *args:
|
|
131
|
+
def uv_install(self, *args: str):
|
|
132
132
|
self.run_module("uv", "pip", "install", *args)
|
|
133
133
|
|
|
134
134
|
def install_comfy_cli(self, dev: bool = False):
|
|
@@ -137,16 +137,17 @@ class StandalonePython:
|
|
|
137
137
|
else:
|
|
138
138
|
self.uv_install("comfy_cli")
|
|
139
139
|
|
|
140
|
-
def run_comfy_cli(self, *args:
|
|
140
|
+
def run_comfy_cli(self, *args: str):
|
|
141
141
|
self.run_module("comfy_cli", *args)
|
|
142
142
|
|
|
143
|
-
def install_comfy(self, *args:
|
|
143
|
+
def install_comfy(self, *args: str, gpu_arg: str = "--nvidia"):
|
|
144
144
|
self.run_comfy_cli("--here", "--skip-prompt", "install", "--fast-deps", gpu_arg, *args)
|
|
145
145
|
|
|
146
146
|
def dehydrate_comfy_deps(
|
|
147
147
|
self,
|
|
148
148
|
comfyDir: PathLike,
|
|
149
149
|
extraSpecs: Optional[list[str]] = None,
|
|
150
|
+
packWheels: bool = False,
|
|
150
151
|
):
|
|
151
152
|
self.dep_comp = DependencyCompiler(
|
|
152
153
|
cwd=comfyDir,
|
|
@@ -156,14 +157,19 @@ class StandalonePython:
|
|
|
156
157
|
)
|
|
157
158
|
self.dep_comp.compile_deps()
|
|
158
159
|
|
|
159
|
-
|
|
160
|
-
|
|
160
|
+
if packWheels:
|
|
161
|
+
skip_uv = get_os() == OS.WINDOWS
|
|
162
|
+
self.dep_comp.fetch_dep_wheels(skip_uv=skip_uv)
|
|
161
163
|
|
|
162
|
-
def rehydrate_comfy_deps(self):
|
|
164
|
+
def rehydrate_comfy_deps(self, packWheels: bool = False):
|
|
163
165
|
self.dep_comp = DependencyCompiler(
|
|
164
166
|
executable=self.executable, outDir=self.rpath, reqFilesCore=[], reqFilesExt=[]
|
|
165
167
|
)
|
|
166
|
-
|
|
168
|
+
|
|
169
|
+
if packWheels:
|
|
170
|
+
self.dep_comp.install_wheels_directly()
|
|
171
|
+
else:
|
|
172
|
+
self.dep_comp.install_deps()
|
|
167
173
|
|
|
168
174
|
def to_tarball(self, outPath: Optional[PathLike] = None, show_progress: bool = True):
|
|
169
175
|
# remove any __pycache__ before creating archive
|
|
@@ -184,7 +184,7 @@ class DependencyCompiler:
|
|
|
184
184
|
override: Optional[PathLike] = None,
|
|
185
185
|
reqs: Optional[list[str]] = None,
|
|
186
186
|
reqFile: Optional[list[PathLike]] = None,
|
|
187
|
-
) ->
|
|
187
|
+
) -> None:
|
|
188
188
|
cmd = [
|
|
189
189
|
str(executable),
|
|
190
190
|
"-m",
|
|
@@ -232,7 +232,7 @@ class DependencyCompiler:
|
|
|
232
232
|
executable: PathLike = sys.executable,
|
|
233
233
|
extraUrl: Optional[str] = None,
|
|
234
234
|
index_strategy: str = "unsafe-best-match",
|
|
235
|
-
) ->
|
|
235
|
+
) -> None:
|
|
236
236
|
cmd = [
|
|
237
237
|
str(executable),
|
|
238
238
|
"-m",
|
|
@@ -262,7 +262,7 @@ class DependencyCompiler:
|
|
|
262
262
|
out: Optional[PathLike] = None,
|
|
263
263
|
reqs: Optional[list[str]] = None,
|
|
264
264
|
reqFile: Optional[list[PathLike]] = None,
|
|
265
|
-
) ->
|
|
265
|
+
) -> None:
|
|
266
266
|
"""For now, the `download` cmd has no uv support, so use pip"""
|
|
267
267
|
cmd = [
|
|
268
268
|
str(executable),
|
|
@@ -298,7 +298,7 @@ class DependencyCompiler:
|
|
|
298
298
|
out: Optional[PathLike] = None,
|
|
299
299
|
reqs: Optional[list[str]] = None,
|
|
300
300
|
reqFile: Optional[list[PathLike]] = None,
|
|
301
|
-
) ->
|
|
301
|
+
) -> None:
|
|
302
302
|
"""For now, the `wheel` cmd has no uv support, so use pip"""
|
|
303
303
|
cmd = [
|
|
304
304
|
str(executable),
|
|
@@ -480,20 +480,20 @@ class DependencyCompiler:
|
|
|
480
480
|
def install_deps(self):
|
|
481
481
|
DependencyCompiler.Install(
|
|
482
482
|
cwd=self.cwd,
|
|
483
|
-
reqFile=[self.out],
|
|
484
483
|
executable=self.executable,
|
|
485
484
|
extra_index_url=self.gpuUrl,
|
|
486
485
|
override=self.override,
|
|
486
|
+
reqFile=[self.out],
|
|
487
487
|
)
|
|
488
488
|
|
|
489
489
|
def install_dists(self):
|
|
490
490
|
DependencyCompiler.Install(
|
|
491
491
|
cwd=self.cwd,
|
|
492
|
-
reqFile=[self.out],
|
|
493
492
|
executable=self.executable,
|
|
494
493
|
find_links=[self.outDir / "dists"],
|
|
495
494
|
no_deps=True,
|
|
496
495
|
no_index=True,
|
|
496
|
+
reqFile=[self.out],
|
|
497
497
|
)
|
|
498
498
|
|
|
499
499
|
def install_wheels(self):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: comfy-cli
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.3
|
|
4
4
|
Summary: A CLI tool for installing and using ComfyUI.
|
|
5
5
|
Maintainer-email: Yoland Yan <yoland@drip.art>, James Kwon <hongilkwon316@gmail.com>, Robin Huang <robin@drip.art>, "Dr.Lt.Data" <dr.lt.data@gmail.com>
|
|
6
6
|
License: GPL-3.0-only
|
|
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "comfy-cli"
|
|
7
7
|
license = { text = "GPL-3.0-only" }
|
|
8
|
-
version = "v1.2.
|
|
8
|
+
version = "v1.2.3" # Will be filled in by the CI/CD pipeline. Check publish_package.py.
|
|
9
9
|
requires-python = ">= 3.9"
|
|
10
10
|
description = "A CLI tool for installing and using ComfyUI."
|
|
11
11
|
readme = "README.md"
|
|
@@ -61,7 +61,7 @@ include = ["comfy_cli*"]
|
|
|
61
61
|
|
|
62
62
|
[tool.ruff]
|
|
63
63
|
line-length = 120
|
|
64
|
-
target-version = "v1.2.
|
|
64
|
+
target-version = "v1.2.3"
|
|
65
65
|
|
|
66
66
|
[tool.ruff.lint]
|
|
67
67
|
select = [
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|