From d68b4e0cab234dbd1171f1bcee0658bfb761acca Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Sat, 20 Jun 2020 01:21:35 +0200 Subject: [PATCH] Use Python 3 in deployment script --- deploy-master.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy-master.sh b/deploy-master.sh index 8179d01..876eb1d 100755 --- a/deploy-master.sh +++ b/deploy-master.sh @@ -26,7 +26,7 @@ git checkout $BRANCH tox # Create tag -tag=v$(python -c "import $PROJECT_NAME; print($PROJECT_NAME.__version__)") +tag=v$(python3 -c "import $PROJECT_NAME; print($PROJECT_NAME.__version__)") master_ref=$(git show-ref -s heads/$BRANCH) tag_ref=$(git show-ref -s $tag || true) @@ -43,7 +43,7 @@ fi # Package and upload to PyPI #rm -rf dist/ - Not needed anymore, because the folder is never reused. echo `pwd` -python setup.py sdist bdist_wheel +python3 setup.py sdist bdist_wheel # Maybe do a pip install twine before. twine upload dist/*