Skip to content

Commit 6f08a0a

Browse files
committed
Add script to increment version for a release
1 parent 24263bd commit 6f08a0a

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

contrib/_incr_version

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/sh -eux
2+
sed -i pyproject.toml -e "s/^version = \"${1}\"/version = \"${2}\"/"
3+
sed -i docs/conf.py -e "s/^release = \"${1}\"/release = \"${2}\"/"
4+
git add pyproject.toml docs/conf.py
5+
git commit -m "Update version to ${2}"

0 commit comments

Comments
 (0)