From 21bd48e6f75e90d2195dd480f31c2948dc3d0b03 Mon Sep 17 00:00:00 2001
From: Moul <moul@moul.re>
Date: Sat, 5 Oct 2019 09:04:01 +0200
Subject: [PATCH] [mod] #66: Update release.sh to update the version in
 pyproject.toml

---
 release.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/release.sh b/release.sh
index bc097f26..27ee8568 100755
--- a/release.sh
+++ b/release.sh
@@ -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"
-- 
GitLab