Try again to fix version detection and make it more verbose
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Benjamin Renard 2022-04-27 20:05:53 +02:00
parent c89ea4ab4c
commit a618f588ba

View file

@ -9,10 +9,13 @@ cd $( dirname $0 )
echo "Clean previous build..."
rm -fr dist deb_dist
echo "Detect version using git describe..."
VERSION="$( git describe --tags --always )"
echo "Fetch git tags..."
git fetch --tags
echo "Set version in setup.py using sed..."
echo "Detect version using git describe..."
VERSION="$( git describe --tags )"
echo "Set version=$VERSION in setup.py using sed..."
sed -i "s/^version *=.*$/version = '$VERSION'/" setup.py
if [ -d venv ]