From 308f9f5f1c6fc9ec8b4c0c79cec16b9cd3866ea9 Mon Sep 17 00:00:00 2001 From: Serene-Arc <33189705+Serene-Arc@users.noreply.github.com> Date: Sat, 21 Oct 2023 20:05:54 +1000 Subject: [PATCH] Update script markdown export --- extra/release.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/extra/release.py b/extra/release.py index c3142268f..5e08b0449 100755 --- a/extra/release.py +++ b/extra/release.py @@ -117,16 +117,11 @@ def bump_version(version): with open(filename, "w") as f: f.write("".join(out_lines)) - # Generate bits to insert into changelog. - header_line = f"{version} (in development)" - header = "\n\n" + header_line + "\n" + "-" * len(header_line) + "\n\n" - header += "Changelog goes here!\n" - # Insert into the right place. with open(CHANGELOG) as f: contents = f.read() location = contents.find("\n\n") # First blank line. - contents = contents[:location] + header + contents[location:] + contents = contents[:location] + contents[location:] # Write back. with open(CHANGELOG, "w") as f: @@ -158,7 +153,7 @@ def get_latest_changelog(): elif started: lines.append(line) - return "".join(lines).strip() + return "".join(lines[2:]).strip() def rst2md(text):