Skip to content
This repository was archived by the owner on May 3, 2023. It is now read-only.

Commit a5a47c1

Browse files
CI: Updated master (#53)
* CI: Updated master
1 parent c82ec60 commit a5a47c1

File tree

3 files changed

+26
-37
lines changed

3 files changed

+26
-37
lines changed

.travis.yml

Lines changed: 15 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ env:
55
- BUILD_COMMIT=v0.24.2
66
- PLAT=x86_64
77
- UNICODE_WIDTH=32
8-
- NP_BUILD_DEP="numpy==1.12.1"
9-
- NP_TEST_DEP="numpy==1.12.1"
8+
- MB_PYTHON_OSX_VER=10.9
9+
- NP_BUILD_DEP="numpy==1.13.3"
10+
- NP_TEST_DEP="numpy==1.13.3"
1011
- WHEELHOUSE_UPLOADER_USERNAME=travis-worker
1112
# Following generated with
1213
# travis encrypt -r MacPython/pandas-wheels WHEELHOUSE_UPLOADER_SECRET=<the api key>
@@ -26,65 +27,47 @@ matrix:
2627
# Exclude the default Python 3.5 build
2728
- python: 3.5
2829
include:
29-
- os: linux
30-
env:
31-
- MB_PYTHON_VERSION=3.7
32-
- NP_BUILD_DEP="numpy==1.14.5"
33-
- NP_TEST_DEP="numpy==1.14.5"
34-
- os: osx
35-
language: generic
36-
env:
37-
- MB_PYTHON_VERSION=3.7
38-
- NP_BUILD_DEP="numpy==1.14.5"
39-
- NP_TEST_DEP="numpy==1.14.5"
40-
- os: linux
41-
env:
42-
- MB_PYTHON_VERSION=2.7
43-
- os: linux
44-
env:
45-
- MB_PYTHON_VERSION=2.7
46-
- PLAT=i686
4730
- os: linux
4831
env:
4932
- MB_PYTHON_VERSION=3.5
5033
- os: linux
5134
env:
52-
- MB_PYTHON_VERSION=3.5
53-
- PLAT=i686
35+
- MB_PYTHON_VERSION=3.6
5436
- os: linux
5537
env:
56-
- MB_PYTHON_VERSION=3.6
38+
- MB_PYTHON_VERSION=3.7
39+
- NP_BUILD_DEP="numpy==1.14.5"
40+
- NP_TEST_DEP="numpy==1.14.5"
5741
- os: linux
5842
env:
5943
- MB_PYTHON_VERSION=3.6
6044
- PLAT=i686
6145
- os: osx
6246
language: generic
6347
env:
64-
- MB_PYTHON_VERSION=2.7
65-
- MACOSX_DEPLOYMENT_TARGET=10.6 # since pandas PR24274, mac builds default to 10.9
48+
- MB_PYTHON_VERSION=3.5
49+
- MB_PYTHON_OSX_VER=10.6 # no python.org 10.9 builds for 3.5
6650
- os: osx
6751
language: generic
6852
env:
69-
- MB_PYTHON_VERSION=3.5
70-
- MACOSX_DEPLOYMENT_TARGET=10.6 # since pandas PR24274, mac builds default to 10.9
53+
- MB_PYTHON_VERSION=3.6
7154
- os: osx
7255
language: generic
7356
env:
74-
- MB_PYTHON_VERSION=3.6
75-
- MACOSX_DEPLOYMENT_TARGET=10.6 # since pandas PR24274, mac builds default to 10.9
76-
57+
- MB_PYTHON_VERSION=3.7
58+
- NP_BUILD_DEP="numpy==1.14.5"
59+
- NP_TEST_DEP="numpy==1.14.5"
7760

7861
before_install:
7962
# See:
8063
# https://github.com/travis-ci/travis-ci/issues/8920#issuecomment-352661024
8164
- python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)"
82-
- CONTAINER="wheels";
65+
- CONTAINER="wheels"; # pre-relesae
8366
- BUILD_COMMIT=$BUILD_COMMIT;
8467
- BUILD_DEPENDS="$NP_BUILD_DEP Cython==0.28.2"
8568
# binary-only for cryptogrpahy. See https://github.com/pandas-dev/pandas/issues/26589
8669
# Moto picks it up, and they don't distribute 32-bit wheels.
87-
- TEST_DEPENDS="$NP_TEST_DEP pytest==3.8.2 pytest-xdist pytest-mock moto hypothesis wheel==0.31.1 cryptography --only-binary=cryptography"
70+
- TEST_DEPENDS="$NP_TEST_DEP pytest>=4.0.2 pytest-xdist pytest-mock moto hypothesis>=3.58 wheel==0.31.1 cryptography --only-binary=cryptography"
8871
- source multibuild/common_utils.sh
8972
- source multibuild/travis_steps.sh
9073
- before_install

config.sh

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,15 @@
44
function pre_build {
55
# Any stuff that you need to do before you start building the wheels
66
# Runs in the root directory of this repository.
7-
:
7+
if [ -n "$IS_OSX" ]; then
8+
# Override pandas' default minimum MACOSX_DEPLOYEMENT_TARGET=10.9,
9+
# so we can build for older Pythons if we really want to.
10+
# See https://github.com/pandas-dev/pandas/pull/24274
11+
local _plat=$(get_distutils_platform)
12+
if [[ -z $MACOSX_DEPLOYMENT_TARGET && "$_plat" =~ macosx-(10\.[0-9]+)-.* ]]; then
13+
export MACOSX_DEPLOYMENT_TARGET=${BASH_REMATCH[1]}
14+
fi
15+
fi
816
}
917

1018
function build_wheel {
@@ -17,7 +25,5 @@ function run_tests {
1725
# Runs tests on installed distribution from an empty directory
1826
export PYTHONHASHSEED=$(python -c 'import random; print(random.randint(1, 4294967295))')
1927
python -c 'import pandas; pandas.show_versions()'
20-
# --deselect for 0.24.x
21-
# https://travis-ci.org/MacPython/pandas-wheels/builds/505474702
22-
python -c 'import pandas; pandas.test(extra_args=["--skip-slow", "--skip-network", "--skip-db", "-n=2", "-k -test_numpy_ufuncs", "-k -test_write_fspath_all"])' || true
28+
python -c 'import pandas; pandas.test(extra_args=["--skip-slow", "--skip-network", "--skip-db", "-n=2"])'
2329
}

pandas

Submodule pandas updated from 07739aa to 2243629

0 commit comments

Comments
 (0)