From 659d58ad7eb45b8780518e44e378132db1ffeb52 Mon Sep 17 00:00:00 2001 From: Daniel McCloy Date: Fri, 20 Dec 2024 15:28:54 -0600 Subject: [PATCH] fix dependency sync? --- tools/hooks/sync_dependencies.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/hooks/sync_dependencies.py b/tools/hooks/sync_dependencies.py index 0878a5f56eb..351313177d3 100755 --- a/tools/hooks/sync_dependencies.py +++ b/tools/hooks/sync_dependencies.py @@ -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() @@ -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")