• Home
  • Raw
  • Download

Lines Matching +full:python3 +full:- +full:docutils

1 #!/usr/bin/env python3
2 # Copyright © 2019-2020 Intel Corporation
39 import docutils.utils
40 import docutils.parsers.rst.states as states
52 wait for Mesa ${this_version[:-1]}1.
69 ---------------
77 ------------
80 - ${rst_escape(f)}
85 ---------
88 - ${rst_escape(b)}
93 -------
100 - ${rst_escape(c)}
106 # copied from https://docutils.sourceforge.io/sandbox/xml2rst/xml2rstlib/markup.py
122 self.document = docutils.utils.new_document("<string>")
134 remaining = docutils.utils.escape2null(text)
151 :len(original) - len(remaining)]
172 return docutils.utils.unescape(checked, 1)
177 async def gather_commits(version: str) -> str:
179 …'git', 'log', '--oneline', f'mesa-{version}..', '-i', '--grep', r'\(Closes\|Fixes\): \(https\|#\).…
186 async def parse_issues(commits: str) -> typing.List[str]:
191 'git', 'log', '--max-count', '1', r'--format=%b', sha,
202 # URL may or may not contain the "/-/" text, so we check if
219 async def gather_bugs(version: str) -> typing.List[str]:
236 async def get_bug(session: aiohttp.ClientSession, bug_id: str) -> str:
251 async def get_shortlog(version: str) -> str:
253 p = await asyncio.create_subprocess_exec('git', 'shortlog', f'mesa-{version}..',
261 def walk_shortlog(log: str) -> typing.Generator[typing.Tuple[str, bool], None, None]:
269 def calculate_next_version(version: str, is_point: bool) -> str:
271 if '-' in version:
272 version = version.split('-')[0]
280 def calculate_previous_version(version: str, is_point: bool) -> str:
283 In the case of -rc to final that version is the previous .0 release,
288 if '-' in version:
289 version = version.split('-')[0]
294 base[0] = str(int(base[0]) - 1)
297 base[1] = str(int(base[1]) - 1)
301 def get_features(is_point_release: bool) -> typing.Generator[str, None, None]:
315 def update_release_notes_index(version: str) -> None:
325 if first_list and line.startswith('-'):
327 new_relnotes.append(f'- :doc:`{version} release notes <relnotes/{version}>`\n')
334 with relnotes_index_path.open('w', encoding='utf-8') as f:
341 async def main() -> None:
345 is_point_release = '-rc' not in raw_version
346 assert '-devel' not in raw_version, 'Do not run this script on -devel'
347 version = raw_version.split('-')[0]
360 with final.open('wt', encoding='utf-8') as f:
383 subprocess.run(['git', 'commit', '-m',