Skip to content
Snippets Groups Projects
Commit 21bd48e6 authored by Moul's avatar Moul
Browse files

[mod] #66: Update release.sh to update the version in pyproject.toml

parent efac2b83
No related branches found
No related tags found
No related merge requests found
...@@ -7,13 +7,13 @@ echo "Current version: $current" ...@@ -7,13 +7,13 @@ echo "Current version: $current"
if [[ $1 =~ ^[0-9]+.[0-9]+.[0-9]+[0-9a-z]*$ ]]; then if [[ $1 =~ ^[0-9]+.[0-9]+.[0-9]+[0-9a-z]*$ ]]; then
# update version in duniterpy # update version in duniterpy
sed -i "s/__version__ = \"$current\"/__version__ = \"$1\"/g" duniterpy/__init__.py sed -i "s/__version__ = \"$current\"/__version__ = \"$1\"/g" duniterpy/__init__.py
# update version in setup.py # update version in pyproject.toml
sed -i "s/version=\"$current\",/version=\"$1\",/" setup.py poetry version "$1"
# update version in documentation configuration # update version in documentation configuration
sed -i "s/version = '$current'/version = '$1'/g" docs/conf.py sed -i "s/version = '$current'/version = '$1'/g" docs/conf.py
sed -i "s/release = '$current'/release = '$1'/g" docs/conf.py sed -i "s/release = '$current'/release = '$1'/g" docs/conf.py
# commit changes and add version tag # commit changes and add version tag
git commit setup.py duniterpy/__init__.py docs/conf.py -m "$1" git commit pyproject.toml duniterpy/__init__.py docs/conf.py -m "$1"
git tag "$1" -a -m "$1" git tag "$1" -a -m "$1"
else else
echo "Wrong version format" echo "Wrong version format"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment