mirror of https://github.com/MagicStack/uvloop.git
ci: Actually build linux wheels on all release Python versions
This commit is contained in:
parent
e3f5cc794a
commit
2d0b427920
|
@ -37,29 +37,23 @@ _upload_wheels() {
|
||||||
|
|
||||||
|
|
||||||
if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
|
if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
|
||||||
ML_PYTHON_VERSION=$(python3 -c "import sys; \
|
for pyver in ${RELEASE_PYTHON_VERSIONS}; do
|
||||||
print('cp{maj}{min}-cp{maj}{min}m'.format( \
|
ML_PYTHON_VERSION=$(python3 -c \
|
||||||
maj=sys.version_info.major, min=sys.version_info.minor))")
|
"print('cp{maj}{min}-cp{maj}{min}m'.format( \
|
||||||
|
maj='${pyver}'.split('.')[0], \
|
||||||
|
min='${pyver}'.split('.')[1]))")
|
||||||
|
|
||||||
PYTHON_VERSION=$(python3 -c "import sys; \
|
for arch in x86_64 i686; do
|
||||||
print('{maj}.{min}'.format( \
|
ML_IMAGE="quay.io/pypa/manylinux1_${arch}"
|
||||||
maj=sys.version_info.major, min=sys.version_info.minor))")
|
docker pull "${ML_IMAGE}"
|
||||||
|
docker run --rm \
|
||||||
|
-v "${_root}":/io \
|
||||||
|
-e "PYMODULE=${PYMODULE}" \
|
||||||
|
-e "PYTHON_VERSION=${ML_PYTHON_VERSION}" \
|
||||||
|
"${ML_IMAGE}" /io/.ci/build-manylinux-wheels.sh
|
||||||
|
|
||||||
if [[ "${RELEASE_PYTHON_VERSIONS}" != *"${PYTHON_VERSION}"* ]]; then
|
_upload_wheels
|
||||||
echo "Skipping release on Python ${PYTHON_VERSION}."
|
done
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
for arch in x86_64 i686; do
|
|
||||||
ML_IMAGE="quay.io/pypa/manylinux1_${arch}"
|
|
||||||
docker pull "${ML_IMAGE}"
|
|
||||||
docker run --rm \
|
|
||||||
-v "${_root}":/io \
|
|
||||||
-e "PYMODULE=${PYMODULE}" \
|
|
||||||
-e "PYTHON_VERSION=${ML_PYTHON_VERSION}" \
|
|
||||||
"${ML_IMAGE}" /io/.ci/build-manylinux-wheels.sh
|
|
||||||
|
|
||||||
_upload_wheels
|
|
||||||
done
|
done
|
||||||
|
|
||||||
elif [ "${TRAVIS_OS_NAME}" == "osx" ]; then
|
elif [ "${TRAVIS_OS_NAME}" == "osx" ]; then
|
||||||
|
|
Loading…
Reference in New Issue