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

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

parent 859f91c8
No related branches found
No related tags found
No related merge requests found
......@@ -7,13 +7,13 @@ echo "Current version: $current"
if [[ $1 =~ ^[0-9]+.[0-9]+.[0-9]+[0-9a-z]*$ ]]; then
# update version in duniterpy
sed -i "s/__version__ = \"$current\"/__version__ = \"$1\"/g" duniterpy/__init__.py
# update version in setup.py
sed -i "s/version=\"$current\",/version=\"$1\",/" setup.py
# update version in pyproject.toml
poetry version "$1"
# update version in documentation configuration
sed -i "s/version = '$current'/version = '$1'/g" docs/conf.py
sed -i "s/release = '$current'/release = '$1'/g" docs/conf.py
# 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"
else
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