diff options
author | Dylan Baker <[email protected]> | 2019-10-24 13:11:40 -0700 |
---|---|---|
committer | Dylan Baker <[email protected]> | 2019-10-25 15:46:15 -0700 |
commit | 8a4541aae22e0cdeb063e3fc25c84775d84f4077 (patch) | |
tree | dd82cf0dd97a0b57e26228ebb249326ef284182d /bin | |
parent | b153785370c7fa47961a69404448c05f7e3c166c (diff) |
bin/gen_release_notes.py: Add a warning if new features are introduced in a point release
Fixes: 86079447da1e00d49db0cbff9a102eb4e71e8702
("scripts: Add a gen_release_notes.py script")
Reviewed-by: Juan A. Suarez <[email protected]>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/gen_release_notes.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/gen_release_notes.py b/bin/gen_release_notes.py index 57f73ee1bd5..f7b9237071c 100755 --- a/bin/gen_release_notes.py +++ b/bin/gen_release_notes.py @@ -25,6 +25,7 @@ import asyncio import datetime import os import pathlib +import sys import textwrap import typing import urllib.parse @@ -221,9 +222,11 @@ def calculate_previous_version(version: str, is_point: bool) -> str: return '.'.join(base) -def get_features() -> typing.Generator[str, None, None]: +def get_features(is_point_release: bool) -> typing.Generator[str, None, None]: p = pathlib.Path(__file__).parent.parent / 'docs' / 'relnotes' / 'new_features.txt' if p.exists(): + if is_point_release: + print("WARNING: new features being introduced in a point release", file=sys.stderr) with p.open('rt') as f: for line in f: yield line @@ -253,7 +256,7 @@ async def main() -> None: bugfix=is_point_release, bugs=bugs, changes=walk_shortlog(shortlog), - features=get_features(), + features=get_features(is_point_release), gl_version=CURRENT_GL_VERSION, next_version=next_version, today=datetime.date.today(), |