Skip to content

Commit b939e9c

Browse files
committed
MAINT: update numpy dependency; add Python 3.6
This will also trigger tests against the latest wheels.
1 parent e7f23f6 commit b939e9c

File tree

3 files changed

+13
-10
lines changed

3 files changed

+13
-10
lines changed

.travis.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,13 @@ env:
2323
- DEPENDS="numpy scipy matplotlib h5py pillow"
2424
- PYDICOM=1
2525
- INSTALL_TYPE="setup"
26+
- EXTRA_WHEELS="https://5cf40426d9f06eb7461d-6fe47d9331aba7cd62fc36c7196769e4.ssl.cf2.rackcdn.com"
27+
- PIP_FLAGS="--find-links=$EXTRA_WHEELS"
2628
python:
2729
- 3.3
2830
- 3.4
2931
- 3.5
32+
- 3.6
3033
matrix:
3134
include:
3235
- python: 2.7
@@ -35,15 +38,15 @@ matrix:
3538
# Absolute minimum dependencies
3639
- python: 2.7
3740
env:
38-
- DEPENDS=numpy==1.5.1 PYDICOM=0
41+
- DEPENDS=numpy==1.6.0 PYDICOM=0
3942
# Absolute minimum dependencies plus oldest MPL
4043
# Check these against:
44+
# nibabel/info.py
4145
# doc/source/installation.rst
4246
# requirements.txt
43-
# .travis.yml
4447
- python: 2.7
4548
env:
46-
- DEPENDS="numpy==1.5.1 matplotlib==1.3.1" PYDICOM=0
49+
- DEPENDS="numpy==1.6.0 matplotlib==1.3.1" PYDICOM=0
4750
# Minimum pydicom dependency
4851
- python: 2.7
4952
env:
@@ -59,7 +62,7 @@ matrix:
5962
# test against pre-release builds
6063
- python: 2.7
6164
env:
62-
- EXTRA_PIP_FLAGS="--pre"
65+
- EXTRA_PIP_FLAGS="--pre --find-links=$EXTRA_WHEELS"
6366
# Documentation doctests
6467
- python: 2.7
6568
env:
@@ -89,7 +92,7 @@ before_install:
8992
- python --version # just to check
9093
- pip install -U pip wheel # upgrade to latest pip find 3.5 wheels; wheel to avoid errors
9194
- retry pip install nose flake8 mock # always
92-
- wheelhouse_pip_install $EXTRA_PIP_FLAGS $DEPENDS
95+
- pip install $EXTRA_PIP_FLAGS $DEPENDS
9396
# pydicom <= 0.9.8 doesn't install on python 3
9497
- if [ "${TRAVIS_PYTHON_VERSION:0:1}" == "2" ]; then
9598
if [ "$PYDICOM" == "1" ]; then
@@ -111,13 +114,13 @@ install:
111114
elif [ "$INSTALL_TYPE" == "sdist" ]; then
112115
python setup_egg.py egg_info # check egg_info while we're here
113116
python setup_egg.py sdist
114-
wheelhouse_pip_install $EXTRA_PIP_FLAGS dist/*.tar.gz
117+
pip install $EXTRA_PIP_FLAGS dist/*.tar.gz
115118
elif [ "$INSTALL_TYPE" == "wheel" ]; then
116119
pip install wheel
117120
python setup_egg.py bdist_wheel
118-
wheelhouse_pip_install $EXTRA_PIP_FLAGS dist/*.whl
121+
pip install $EXTRA_PIP_FLAGS dist/*.whl
119122
elif [ "$INSTALL_TYPE" == "requirements" ]; then
120-
wheelhouse_pip_install $EXTRA_PIP_FLAGS -r requirements.txt
123+
pip install $EXTRA_PIP_FLAGS -r requirements.txt
121124
python setup.py install
122125
fi
123126
# Point to nibabel data directory

doc/source/installation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ Requirements
8787
.travis.yml
8888
8989
* Python_ 2.7 or greater
90-
* NumPy_ 1.5 or greater
90+
* NumPy_ 1.6 or greater
9191
* SciPy_ (optional, for full SPM-ANALYZE support)
9292
* PyDICOM_ 0.9.7 or greater (optional, for DICOM support)
9393
* `Python Imaging Library`_ (optional, for PNG conversion in DICOMFS)

nibabel/info.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ def cmp_pkg_version(version_str, pkg_version_str=__version__):
186186
# doc/source/installation.rst
187187
# requirements.txt
188188
# .travis.yml
189-
NUMPY_MIN_VERSION = '1.5.1'
189+
NUMPY_MIN_VERSION = '1.6.0'
190190
PYDICOM_MIN_VERSION = '0.9.7'
191191

192192
# Main setup parameters

0 commit comments

Comments
 (0)