ci: Actually build linux wheels on all release Python versions

This commit is contained in:
Elvis Pranskevichus 2017-01-01 21:17:41 -05:00
parent e3f5cc794a
commit 2d0b427920
1 changed files with 15 additions and 21 deletions

View File

@ -37,18 +37,11 @@ _upload_wheels() {
if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
ML_PYTHON_VERSION=$(python3 -c "import sys; \
print('cp{maj}{min}-cp{maj}{min}m'.format( \
maj=sys.version_info.major, min=sys.version_info.minor))")
PYTHON_VERSION=$(python3 -c "import sys; \
print('{maj}.{min}'.format( \
maj=sys.version_info.major, min=sys.version_info.minor))")
if [[ "${RELEASE_PYTHON_VERSIONS}" != *"${PYTHON_VERSION}"* ]]; then
echo "Skipping release on Python ${PYTHON_VERSION}."
exit 0
fi
for pyver in ${RELEASE_PYTHON_VERSIONS}; do
ML_PYTHON_VERSION=$(python3 -c \
"print('cp{maj}{min}-cp{maj}{min}m'.format( \
maj='${pyver}'.split('.')[0], \
min='${pyver}'.split('.')[1]))")
for arch in x86_64 i686; do
ML_IMAGE="quay.io/pypa/manylinux1_${arch}"
@ -61,6 +54,7 @@ if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
_upload_wheels
done
done
elif [ "${TRAVIS_OS_NAME}" == "osx" ]; then
make -C "${_root}"