| 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 | |
| 259 | extras = {} |