Skip to content

Commit

Permalink
upgraded wheel tests
Browse files Browse the repository at this point in the history
  • Loading branch information
emasab committed Jul 29, 2022
1 parent eba2d0d commit fed2390
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 16 deletions.
4 changes: 2 additions & 2 deletions tools/smoketest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ fi

pyvers_tested=

# Run tests with both python2 and python3 (whatever versions the OS provides)
for py in 2.7 3.8 ; do
# Run tests with python3
for py in 3.8 ; do
echo "$0: # Smoketest with Python$py"

if ! python$py -V ; then
Expand Down
19 changes: 5 additions & 14 deletions tools/test-manylinux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,13 @@ fi

echo "$0 running from $(pwd)"


function setup_centos {
# CentOS container setup
yum install -q -y python python3 epel-release curl
}

function setup_ubuntu {
# Ubuntu container setup
apt-get update
apt-get install -y python python3 curl
apt-get install -y python3.8 curl
# python3-distutils is required on Ubuntu 18.04 and later but does
# not exist on 14.04.
apt-get install -y python3-distutils || true
apt-get install -y python3.8-distutils || true
}


Expand All @@ -57,9 +51,7 @@ function run_single_in_docker {
fi

# Detect OS
if grep -qi centos /etc/system-release /etc/redhat-release 2>/dev/null ; then
setup_centos
elif grep -qiE 'ubuntu|debian' /etc/os-release 2>/dev/null ; then
if grep -qiE 'ubuntu|debian' /etc/os-release 2>/dev/null ; then
setup_ubuntu
else
echo "WARNING: Don't know what platform I'm on: $(uname -a)"
Expand All @@ -69,7 +61,7 @@ function run_single_in_docker {
# in a plethora of possibly outdated Python requirements that
# might interfere with the newer packages from PyPi, such as six.
# Instead install it directly from PyPa.
curl https://bootstrap.pypa.io/get-pip.py | python
curl https://bootstrap.pypa.io/get-pip.py | python3.8

/io/tools/smoketest.sh "$wheelhouse"
}
Expand All @@ -86,8 +78,7 @@ function run_all_with_docker {

[[ ! -z $DOCKER_IMAGES ]] || \
# LTS and stable release of popular Linux distros.
# We require >= Python 2.7 to be available (which rules out Centos 6.6)
DOCKER_IMAGES="ubuntu:14.04 ubuntu:16.04 ubuntu:18.04 ubuntu:20.04 centos:7 centos:8"
DOCKER_IMAGES="ubuntu:18.04 ubuntu:20.04"


_wheels="$wheelhouse/*manylinux*.whl"
Expand Down

0 comments on commit fed2390

Please sign in to comment.