diff --git a/.travis/deploy.sh b/.travis/deploy.sh new file mode 100755 index 00000000..dc827fdf --- /dev/null +++ b/.travis/deploy.sh @@ -0,0 +1,17 @@ +# Install twine +echo "Installing twine" +python -m pip install twine + +# Make wheels +echo "Making wheels" +make sdist +make bdist_wheel +if [ $TRAVIS_OS_NAME == "linux" && $TOXENV == "py37" ]; then make bdist_manylinux_amd64 ; fi + +# Upload +echo "Upload to testPyPi" +twine upload -u pyskycoin -p "prerelease_0.X" --verbose --skip-existing --repository-url https://test.pypi.org/legacy/ dist/* +twine upload -u pyskycoin -p "prerelease_0.X" --verbose --skip-existing --repository-url https://test.pypi.org/legacy/ lib/skyapi/dist/* +# echo "Upload to PyPi" +# twine upload -u $PYPITEST_USER -p $PYPITEST_PWD --repository-url https://upload.pypi.org/legacy/ dist/* +# twine upload -u $PYPITEST_USER -p $PYPITEST_PWD --repository-url https://upload.pypi.org/legacy/ lib/skyapi/dist/*