diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-05 16:20:59 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-05 16:20:59 +0000 |
commit | 5de84c9242643f786eff03726286578726d7d390 (patch) | |
tree | 8e8eadab2b786c41d7b8a2cdafbb467588928ad0 /utils/bump_docker.py | |
parent | Releasing progress-linux version 7.2.6-8~progress7.99u1. (diff) | |
download | sphinx-5de84c9242643f786eff03726286578726d7d390.tar.xz sphinx-5de84c9242643f786eff03726286578726d7d390.zip |
Merging upstream version 7.3.7.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'utils/bump_docker.py')
-rwxr-xr-x[-rw-r--r--] | utils/bump_docker.py | 32 |
1 files changed, 19 insertions, 13 deletions
diff --git a/utils/bump_docker.py b/utils/bump_docker.py index ec4a1c7..8f385ae 100644..100755 --- a/utils/bump_docker.py +++ b/utils/bump_docker.py @@ -25,22 +25,28 @@ SPHINX_VERSION_PREFIX = 'Sphinx==' for file in DOCKERFILE_BASE, DOCKERFILE_LATEXPDF: content = file.read_text(encoding='utf-8') - content = re.sub(rf'{re.escape(OPENCONTAINERS_VERSION_PREFIX)} = "{VERSION_PATTERN}"', - rf'{OPENCONTAINERS_VERSION_PREFIX} = "{VERSION}"', - content) - content = re.sub(rf'{re.escape(SPHINX_VERSION_PREFIX)}{VERSION_PATTERN}', - rf'{SPHINX_VERSION_PREFIX}{VERSION}', - content) + content = re.sub( + rf'{re.escape(OPENCONTAINERS_VERSION_PREFIX)} = "{VERSION_PATTERN}"', + rf'{OPENCONTAINERS_VERSION_PREFIX} = "{VERSION}"', + content, + ) + content = re.sub( + rf'{re.escape(SPHINX_VERSION_PREFIX)}{VERSION_PATTERN}', + rf'{SPHINX_VERSION_PREFIX}{VERSION}', + content, + ) file.write_text(content, encoding='utf-8') -def git(*args): - ret = subprocess.run(('git', *args), - capture_output=True, - cwd=DOCKER_ROOT, - check=True, - text=True, - encoding='utf-8') +def git(*args: str) -> None: + ret = subprocess.run( + ('git', *args), + capture_output=True, + cwd=DOCKER_ROOT, + check=True, + text=True, + encoding='utf-8', + ) print(ret.stdout) print(ret.stderr, file=sys.stderr) |