Lines Matching +full:docs +full:- +full:base
2 # Copyright © 2019-2020 Intel Corporation
52 wait for Mesa ${this_version[:-1]}1.
69 ---------------
77 ------------
80 - ${rst_escape(f)}
85 ---------
88 - ${rst_escape(b)}
93 -------
100 - ${rst_escape(c)}
151 :len(original) - len(remaining)]
176 async def gather_commits(version: str) -> str:
178 'git', 'log', '--oneline', f'mesa-{version}..', '--grep', r'Closes: \(https\|#\).*',
185 async def parse_issues(commits: str) -> typing.List[str]:
190 'git', 'log', '--max-count', '1', r'--format=%b', sha,
209 async def gather_bugs(version: str) -> typing.List[str]:
223 async def get_bug(session: aiohttp.ClientSession, bug_id: str) -> str:
233 async def get_shortlog(version: str) -> str:
235 p = await asyncio.create_subprocess_exec('git', 'shortlog', f'mesa-{version}..',
243 def walk_shortlog(log: str) -> typing.Generator[typing.Tuple[str, bool], None, None]:
251 def calculate_next_version(version: str, is_point: bool) -> str:
253 if '-' in version:
254 version = version.split('-')[0]
256 base = version.split('.')
257 base[2] = str(int(base[2]) + 1)
258 return '.'.join(base)
262 def calculate_previous_version(version: str, is_point: bool) -> str:
265 In the case of -rc to final that verison is the previous .0 release,
270 if '-' in version:
271 version = version.split('-')[0]
274 base = version.split('.')
275 if base[1] == '0':
276 base[0] = str(int(base[0]) - 1)
277 base[1] = '3'
279 base[1] = str(int(base[1]) - 1)
280 return '.'.join(base)
283 def get_features(is_point_release: bool) -> typing.Generator[str, None, None]:
284 p = pathlib.Path(__file__).parent.parent / 'docs' / 'relnotes' / 'new_features.txt'
298 async def main() -> None:
302 is_point_release = '-rc' not in raw_version
303 assert '-devel' not in raw_version, 'Do not run this script on -devel'
304 version = raw_version.split('-')[0]
316 final = pathlib.Path(__file__).parent.parent / 'docs' / 'relnotes' / f'{this_version}.rst'
336 subprocess.run(['git', 'commit', '-m',
337 f'docs: add release notes for {this_version}'])