(release) add python script to prepare release

Change versions, update changelog and create branch and commit
to submit release informations.
Give following instructions to do after.
This commit is contained in:
Sabrina Demagny
2024-09-02 23:02:36 +02:00
parent aaad48480a
commit 77cc64a6c7
3 changed files with 134 additions and 0 deletions

14
scripts/utils.py Normal file
View File

@@ -0,0 +1,14 @@
import subprocess
import sys
def run_command(cmd, msg=None, shell=False, cwd='.', stdout=None):
if msg is None:
msg = f"# Running: {cmd}"
if stdout is not None:
stdout.write(msg + '\n')
if stdout != sys.stdout:
sys.stdout(msg)
subprocess.check_call(cmd, shell=shell, cwd=cwd, stdout=stdout, stderr=stdout)
if stdout is not None:
stdout.flush()