MCPcopy Create free account
hub / github.com/ModalityDance/Omni-R1 / run

Method run

src/transformers/setup.py:242–256  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

240 pass
241
242 def run(self):
243 entries = "\n".join([f' "{k}": "{v}",' for k, v in deps.items()])
244 content = [
245 "# THIS FILE HAS BEEN AUTOGENERATED. To update:",
246 "# 1. modify the `_deps` dict in setup.py",
247 "# 2. run `make deps_table_update``",
248 "deps = {",
249 entries,
250 "}",
251 "",
252 ]
253 target = "src/transformers/dependency_versions_table.py"
254 print(f"updating {target}")
255 with open(target, "w", encoding="utf-8", newline="\n") as f:
256 f.write("\n".join(content))
257
258
259extras = {}

Callers

nothing calls this directly

Calls 2

writeMethod · 0.80
itemsMethod · 0.45

Tested by

no test coverage detected