Skip to content

Commit 7cca00d

Browse files
committed
Merge branch 'devel'
* devel: Add Python 3.7 test. Add extra test for fill of Python version Added Python 3.7 Updated Python versions Updated redirected URL Added Xcode 9.4 Travis build NF: add distutils platform check
2 parents 0132ff1 + f8b6cc7 commit 7cca00d

File tree

6 files changed

+29
-6
lines changed

6 files changed

+29
-6
lines changed

.travis.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,11 @@ matrix:
7373
- VENV=venv
7474
- os: osx
7575
env:
76-
- PYTHON_VERSION=3.6
76+
- PYTHON_VERSION=3.7
77+
- VENV=venv
78+
- os: osx
79+
env:
80+
- PYTHON_VERSION=3.7
7781
- VENV=venv
7882
- USE_CCACHE=1
7983
- os: osx
@@ -114,6 +118,10 @@ matrix:
114118
- VENV=venv
115119
# Default OSX (xcode image) is 10.12 (xcode 8.3.3) as of 2018-03-29
116120
# See: https://docs.travis-ci.com/user/reference/osx/
121+
- os: osx
122+
osx_image: xcode9.4
123+
env:
124+
- PYTHON_VERSION=3.5
117125
- os: osx
118126
osx_image: xcode9.3
119127
env:

common_utils.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,12 @@ function get_platform {
299299
python -c 'import platform; print(platform.uname()[4])'
300300
}
301301

302+
function get_distutils_platform {
303+
# Report platform as given by distutils get_platform.
304+
# This is the platform tag that pip will use.
305+
python -c "import distutils.util; print(distutils.util.get_platform())"
306+
}
307+
302308
function install_wheel {
303309
# Install test dependencies and built wheel
304310
#

library_builders.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ function build_hdf5 {
225225
build_zlib
226226
# libaec is a drop-in replacement for szip
227227
build_libaec
228-
local hdf5_url=https://www.hdfgroup.org/ftp/HDF5/releases
228+
local hdf5_url=https://support.hdfgroup.org/ftp/HDF5/releases
229229
local short=$(echo $HDF5_VERSION | awk -F "." '{printf "%d.%d", $1, $2}')
230230
fetch_unpack $hdf5_url/hdf5-$short/hdf5-$HDF5_VERSION/src/hdf5-$HDF5_VERSION.tar.gz
231231
(cd hdf5-$HDF5_VERSION \

osx_utils.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ GET_PIP_URL=https://bootstrap.pypa.io/get-pip.py
1212
DOWNLOADS_SDIR=downloads
1313
WORKING_SDIR=working
1414

15-
# As of 1 May 2018 - latest Python of each version with binary download
15+
# As of 28 June 2018 - latest Python of each version with binary download
1616
# available.
1717
# See: https://www.python.org/downloads/mac-osx/
1818
LATEST_2p7=2.7.15
@@ -21,7 +21,8 @@ LATEST_3p2=3.2.5
2121
LATEST_3p3=3.3.5
2222
LATEST_3p4=3.4.4
2323
LATEST_3p5=3.5.4
24-
LATEST_3p6=3.6.5
24+
LATEST_3p6=3.6.6
25+
LATEST_3p7=3.7.0
2526

2627

2728
function check_python {
@@ -80,7 +81,9 @@ function fill_pyver {
8081
echo $LATEST_2p7
8182
elif [ $ver == "2.6" ]; then
8283
echo $LATEST_2p6
83-
elif [ $ver == 3 ] || [ $ver == "3.6" ]; then
84+
elif [ $ver == 3 ] || [ $ver == "3.7" ]; then
85+
echo $LATEST_3p7
86+
elif [ $ver == "3.6" ]; then
8487
echo $LATEST_3p6
8588
elif [ $ver == "3.5" ]; then
8689
echo $LATEST_3p5

tests/test_common_utils.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,7 @@ set_opts $ORIG_OPTS
8888

8989
# On Linux docker containers in travis, can only be x86_64 or i686
9090
[ "$(get_platform)" == x86_64 ] || [ "$(get_platform)" == i686 ] || exit 1
91+
92+
# Crudest possible check for get_distutils_platform
93+
expected=$(python -c "import distutils.util as du; print(du.get_platform())")
94+
[ "$(get_distutils_platform)" == "$expected" ] || ingest "bad distutils platform"

tests/test_fill_pyver.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
[ "$(fill_pyver 2.7.8)" == "2.7.8" ] || ingest
55
[ "$(fill_pyver 2.6)" == $LATEST_2p6 ] || ingest
66
[ "$(fill_pyver 2.6.2)" == "2.6.2" ] || ingest
7-
[ "$(fill_pyver 3)" == $LATEST_3p6 ] || ingest
7+
[ "$(fill_pyver 3)" == $LATEST_3p7 ] || ingest
8+
[ "$(fill_pyver 3.7.0)" == "3.7.0" ] || ingest
9+
[ "$(fill_pyver 3.7)" == $LATEST_3p7 ] || ingest
810
[ "$(fill_pyver 3.6)" == $LATEST_3p6 ] || ingest
911
[ "$(fill_pyver 3.6.0)" == "3.6.0" ] || ingest
1012
[ "$(fill_pyver 3.5)" == $LATEST_3p5 ] || ingest

0 commit comments

Comments
 (0)