Try again to fix version detection and make it more verbose
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
This commit is contained in:
parent
c89ea4ab4c
commit
a618f588ba
1 changed files with 6 additions and 3 deletions
9
build.sh
9
build.sh
|
@ -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 ]
|
||||
|
|
Loading…
Reference in a new issue