diff --git a/.scripts/run.deployment.sh b/.scripts/run.deployment.sh index 9b179895..a426233f 100755 --- a/.scripts/run.deployment.sh +++ b/.scripts/run.deployment.sh @@ -10,10 +10,10 @@ VERSION=`python -c "from sklearn_porter import __version__ as ver; print(ver);"` COMMIT=`git rev-parse --short HEAD` # Environment: -TARGET="https://upload.pypi.org/legacy/" +TARGET="pypi" read -r -p "Do you want to use the staging environment (test.pypi.org)? [y/N] " response if [[ "$response" =~ ^([yY][eE][sS]|[yY])+$ ]]; then - TARGET="https://test.pypi.org/legacy/" + TARGET="testpypi" fi # Build the package: @@ -22,5 +22,5 @@ python ./setup.py sdist bdist_wheel # Upload the package: read -r -p "Upload $NAME@$VERSION (#$COMMIT) to '$TARGET'? [y/N] " response if [[ "$response" =~ ^([yY][eE][sS]|[yY])+$ ]]; then - twine upload ./dist/* --repository-url $TARGET + twine upload --repository $TARGET dist/* fi