Skip to content

Commit

Permalink
change build script to upload to QPypi
Browse files Browse the repository at this point in the history
  • Loading branch information
sam-writer committed Dec 11, 2019
1 parent 8cd0f55 commit 3c6371e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions build_release.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -46,25 +46,28 @@ update_deps ()

bump_version ()
{
echo "Bumping minor version in VERSION file"
echo ""
echo "$SUGGESTED_VERSION" > VERSION
}


create_dist ()
{
echo "generating source distribution - this step bumps version.py to match VERSION"
echo ""
python3 setup.py sdist
}

upload_to_pypi ()
{
echo "uploading to pypi"
if [ $PYPIRC = "here" ]; then
twine upload --config-file .pypirc dist/"$SERVICE_NAME"-"$SUGGESTED_VERSION".tar.gz
twine upload -r qpypi --config-file .pypirc dist/"$SERVICE_NAME"-"$SUGGESTED_VERSION".tar.gz
elif [ $PYPIRC = "creds" ]; then
twine upload --config-file "$CREDS_LOCATION" dist/"$SERVICE_NAME"-"$SUGGESTED_VERSION".tar.gz
twine upload -r qpypi --config-file "$CREDS_LOCATION" dist/"$SERVICE_NAME"-"$SUGGESTED_VERSION".tar.gz
else
twine upload --config-file ~/.pypirc dist/"$SERVICE_NAME"-"$SUGGESTED_VERSION".tar.gz
twine upload -r qpypi --config-file ~/.pypirc dist/"$SERVICE_NAME"-"$SUGGESTED_VERSION".tar.gz
fi
}

Expand Down

0 comments on commit 3c6371e

Please sign in to comment.