Commit f5353e01 authored by Eric Engestrom's avatar Eric Engestrom 💤 Committed by Marge Bot
Browse files

post_version.py: drop incorrect conf.py changes

This needs to be done in the mesa3d.org repo; see
mesa/mesa3d.org!19

Signed-off-by: Eric Engestrom's avatarEric Engestrom <eric@engestrom.ch>
Part-of: <mesa/mesa!5928>
parent 24e118f6
...@@ -26,33 +26,6 @@ import pathlib ...@@ -26,33 +26,6 @@ import pathlib
import subprocess import subprocess
def update_homepage(version: str) -> None:
p = pathlib.Path(__file__).parent.parent / 'docs' / 'conf.py'
# Don't post release candidates to the homepage
if 'rc' in version:
return
with open(p, 'r') as f:
conf = f.readlines()
new_conf = []
for line in conf:
if line.startswith("version = '") and line.endswith("'\n"):
old_version = line.split("'")[1]
# Avoid overwriting 20.1.0 when releasing 20.0.8
# TODO: we might need more than that to handle 20.0.10
if old_version < version:
line = f"version = '{version}'\n"
new_conf.append(line)
with open(p, 'w') as f:
for line in new_conf:
f.write(line)
subprocess.run(['git', 'add', p])
def update_release_notes(version: str) -> None: def update_release_notes(version: str) -> None:
p = pathlib.Path(__file__).parent.parent / 'docs' / 'relnotes.rst' p = pathlib.Path(__file__).parent.parent / 'docs' / 'relnotes.rst'
...@@ -108,7 +81,6 @@ def main() -> None: ...@@ -108,7 +81,6 @@ def main() -> None:
parser.add_argument('version', help="The released version.") parser.add_argument('version', help="The released version.")
args = parser.parse_args() args = parser.parse_args()
update_homepage(args.version)
update_calendar(args.version) update_calendar(args.version)
done = 'update calendar' done = 'update calendar'
......
...@@ -314,10 +314,10 @@ Then run the ...@@ -314,10 +314,10 @@ Then run the
./bin/post_version.py X.Y.Z ./bin/post_version.py X.Y.Z
, where X.Y.Z is the version you just made. This will updated , where X.Y.Z is the version you just made. This will update
docs/relnotes.rst, docs/index.rst, and docs/release-calendar.rst. It docs/relnotes.rst and docs/release-calendar.rst. It will then generate
will then generate a git commit automatically. Check that everything a git commit automatically. Check that everything looks correct and
looks correct and push: push:
:: ::
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment