import datetime
import os
import pathlib
+import sys
import textwrap
import typing
import urllib.parse
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
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(),