Skip to content

Commit

Permalink
Add script to increment version for a release
Browse files Browse the repository at this point in the history
  • Loading branch information
schodet committed Jan 4, 2024
1 parent 24263bd commit 6f08a0a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions contrib/_incr_version
Original file line number Diff line number Diff line change
@@ -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}"

0 comments on commit 6f08a0a

Please sign in to comment.