Skip to content

Commit

Permalink
fix dependency sync?
Browse files Browse the repository at this point in the history
  • Loading branch information
drammock committed Dec 20, 2024
1 parent 13b06a3 commit 659d58a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/hooks/sync_dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ def _prettify_pin(pin):
f"- `{key} <{url}>`__{core_deps_pins[key.lower()]}"
for key, url in CORE_DEPS_URLS.items()
]
core_deps_rst = "\n" + "\n".join(core_deps_bullets) + "\n"

# rewrite the README file
lines = README_PATH.read_text("utf-8").splitlines()
Expand All @@ -87,9 +86,10 @@ def _prettify_pin(pin):
if line.strip() == BEGIN:
skip = True
out_lines.append(line)
out_lines.append(core_deps_rst)
out_lines.extend(["", *core_deps_bullets, ""])
if line.strip() == END:
skip = False
if not skip:
out_lines.append(line)
README_PATH.write_text("\n".join(out_lines) + "\n", encoding="utf-8")

README_PATH.resolve().write_text("\n".join(out_lines) + "\n", encoding="utf-8")

0 comments on commit 659d58a

Please sign in to comment.