Skip to content

Commit fed2390

Browse files
committed
upgraded wheel tests
1 parent eba2d0d commit fed2390

File tree

2 files changed

+7
-16
lines changed

2 files changed

+7
-16
lines changed

tools/smoketest.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ fi
2929

3030
pyvers_tested=
3131

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

3636
if ! python$py -V ; then

tools/test-manylinux.sh

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,13 @@ fi
3030

3131
echo "$0 running from $(pwd)"
3232

33-
34-
function setup_centos {
35-
# CentOS container setup
36-
yum install -q -y python python3 epel-release curl
37-
}
38-
3933
function setup_ubuntu {
4034
# Ubuntu container setup
4135
apt-get update
42-
apt-get install -y python python3 curl
36+
apt-get install -y python3.8 curl
4337
# python3-distutils is required on Ubuntu 18.04 and later but does
4438
# not exist on 14.04.
45-
apt-get install -y python3-distutils || true
39+
apt-get install -y python3.8-distutils || true
4640
}
4741

4842

@@ -57,9 +51,7 @@ function run_single_in_docker {
5751
fi
5852

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

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

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

9283

9384
_wheels="$wheelhouse/*manylinux*.whl"

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy