forked from VimPlug/jedi
Use Python 3 in the deployment script
This commit is contained in:
@@ -27,7 +27,7 @@ git submodule update --init
|
|||||||
tox
|
tox
|
||||||
|
|
||||||
# Create tag
|
# 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)
|
master_ref=$(git show-ref -s heads/$BRANCH)
|
||||||
tag_ref=$(git show-ref -s $tag || true)
|
tag_ref=$(git show-ref -s $tag || true)
|
||||||
@@ -44,7 +44,7 @@ fi
|
|||||||
# Package and upload to PyPI
|
# Package and upload to PyPI
|
||||||
#rm -rf dist/ - Not needed anymore, because the folder is never reused.
|
#rm -rf dist/ - Not needed anymore, because the folder is never reused.
|
||||||
echo `pwd`
|
echo `pwd`
|
||||||
python setup.py sdist bdist_wheel
|
python3 setup.py sdist bdist_wheel
|
||||||
# Maybe do a pip install twine before.
|
# Maybe do a pip install twine before.
|
||||||
twine upload dist/*
|
twine upload dist/*
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user