Skip to content

Commit

Permalink
release/0.7.3: Update twine repository handling
Browse files Browse the repository at this point in the history
  • Loading branch information
nok committed Apr 15, 2019
1 parent 7ef0e57 commit 346e52b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .scripts/run.deployment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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

0 comments on commit 346e52b

Please sign in to comment.