File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -117,16 +117,11 @@ def bump_version(version):
117
117
with open (filename , "w" ) as f :
118
118
f .write ("" .join (out_lines ))
119
119
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
-
125
120
# Insert into the right place.
126
121
with open (CHANGELOG ) as f :
127
122
contents = f .read ()
128
123
location = contents .find ("\n \n " ) # First blank line.
129
- contents = contents [:location ] + header + contents [location :]
124
+ contents = contents [:location ] + contents [location :]
130
125
131
126
# Write back.
132
127
with open (CHANGELOG , "w" ) as f :
@@ -158,7 +153,7 @@ def get_latest_changelog():
158
153
159
154
elif started :
160
155
lines .append (line )
161
- return "" .join (lines ).strip ()
156
+ return "" .join (lines [ 2 :] ).strip ()
162
157
163
158
164
159
def rst2md (text ):
You can’t perform that action at this time.
0 commit comments