You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
749 B
33 lines
749 B
#!/bin/bash
|
|
|
|
set -e -x
|
|
|
|
echo "deploy"
|
|
|
|
# remove left over files from previous steps
|
|
rm -rf build dist
|
|
mkdir dist
|
|
|
|
python setup.py sdist
|
|
|
|
if [[ "$TRAVIS_OS_NAME" == "linux" && ${BUILD_LINUX_WHEELS} -eq 1 ]]; then
|
|
docker run --rm -v $(pwd):/io quay.io/pypa/manylinux1_x86_64 /io/.travis/build-linux-wheels.sh
|
|
linux32 docker run --rm -v $(pwd):/io quay.io/pypa/manylinux1_i686 /io/.travis/build-linux-wheels.sh
|
|
.travis/build_windows_wheels.sh
|
|
else
|
|
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
|
python -m pip install wheel
|
|
python setup.py bdist_wheel
|
|
fi
|
|
fi
|
|
|
|
ls -l dist
|
|
|
|
python -m pip install twine
|
|
|
|
# Ignore non-existing files in globs
|
|
shopt -s nullglob
|
|
|
|
twine upload --skip-existing dist/coincurve*.{whl,gz} -u "${PYPI_USERNAME}"
|
|
|
|
set +e +x
|
|
|