genrelnotes: Jump to version 1.0.0

pull/11022/head
Xavier Claessens 2 years ago committed by Jussi Pakkanen
parent 273605f859
commit 9463595b11
  1. 3
      docs/genrelnotes.py

@ -49,6 +49,9 @@ def add_to_sitemap(sitemap, output_sitemap):
m = re.match(r'[\s]*Release-notes-for-([0-9]+)\.([0-9]+)\.([0-9]+)\.md', line)
if m:
from_version = f'{m[1]}.{m[2]}.{m[3]}'
if from_version == '0.64.0':
to_version = '1.0.0'
else:
to_version = f'{m[1]}.{int(m[2]) + 1}.{m[3]}'
new_line = line.replace(from_version, to_version)
relnotes = new_line.strip()

Loading…
Cancel
Save