Skip to content

Commit 308f9f5

Browse files
committed
Update script markdown export
1 parent 3c4c586 commit 308f9f5

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

extra/release.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -117,16 +117,11 @@ def bump_version(version):
117117
with open(filename, "w") as f:
118118
f.write("".join(out_lines))
119119

120-
# Generate bits to insert into changelog.
121-
header_line = f"{version} (in development)"
122-
header = "\n\n" + header_line + "\n" + "-" * len(header_line) + "\n\n"
123-
header += "Changelog goes here!\n"
124-
125120
# Insert into the right place.
126121
with open(CHANGELOG) as f:
127122
contents = f.read()
128123
location = contents.find("\n\n") # First blank line.
129-
contents = contents[:location] + header + contents[location:]
124+
contents = contents[:location] + contents[location:]
130125

131126
# Write back.
132127
with open(CHANGELOG, "w") as f:
@@ -158,7 +153,7 @@ def get_latest_changelog():
158153

159154
elif started:
160155
lines.append(line)
161-
return "".join(lines).strip()
156+
return "".join(lines[2:]).strip()
162157

163158

164159
def rst2md(text):

0 commit comments

Comments
 (0)