Fix source deployment
@@ -34,19 +34,24 @@ if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
echo "Creating pip binary package..."
python setup.py bdist_wheel
+
+ echo "Deploying to Pypi..."
+ # twine upload --repository pypi --config-file ../../ci/pypirc -p $PYPI_PASSWORD dist/* # Main pypi repo
+ twine upload --repository testpypi --config-file ../../ci/pypirc -p $PYPI_PASSWORD dist/* # Test pypi repo
+ echo "Successfully deployed to Pypi"
+
else if [[ "$TRAVIS_OS_NAME" == "linux" && "$PYTHON_VERSION" == "3.6" ]]; then
# Choose one python version to upload source distribution (3.6)
echo "Creating pip source package..."
python setup.py sdist
- fi
-fi
-
echo "Deploying to Pypi..."
# twine upload --repository pypi --config-file ../../ci/pypirc -p $PYPI_PASSWORD dist/* # Main pypi repo
twine upload --repository testpypi --config-file ../../ci/pypirc -p $PYPI_PASSWORD dist/* # Test pypi repo
echo "Successfully deployed to Pypi"
+fi
+fi
exit 0
