From 6f08a0ac57a29bfc6daa5a45513ff02f96cafc6a Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Wed, 28 Jun 2023 23:56:33 +0200 Subject: [PATCH] Add script to increment version for a release --- contrib/_incr_version | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 contrib/_incr_version diff --git a/contrib/_incr_version b/contrib/_incr_version new file mode 100755 index 0000000..447e516 --- /dev/null +++ b/contrib/_incr_version @@ -0,0 +1,5 @@ +#!/bin/sh -eux +sed -i pyproject.toml -e "s/^version = \"${1}\"/version = \"${2}\"/" +sed -i docs/conf.py -e "s/^release = \"${1}\"/release = \"${2}\"/" +git add pyproject.toml docs/conf.py +git commit -m "Update version to ${2}"