MCPcopy Create free account
hub / github.com/TencentARC/BrushNet / run

Method run

setup.py:186–200  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

184 pass
185
186 def run(self):
187 entries = "\n".join([f' "{k}": "{v}",' for k, v in deps.items()])
188 content = [
189 "# THIS FILE HAS BEEN AUTOGENERATED. To update:",
190 "# 1. modify the `_deps` dict in setup.py",
191 "# 2. run `make deps_table_update`",
192 "deps = {",
193 entries,
194 "}",
195 "",
196 ]
197 target = "src/diffusers/dependency_versions_table.py"
198 print(f"updating {target}")
199 with open(target, "w", encoding="utf-8", newline="\n") as f:
200 f.write("\n".join(content))
201
202
203extras = {}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected