88 global :
99 - DEPENDS="numpy scipy matplotlib h5py"
1010 - PYDICOM=1
11+ - INSTALL_TYPE="setup"
1112python :
1213 - 2.6
1314 - 3.2
1415 - 3.3
1516 - 3.4
17+ - 3.5
1618matrix :
1719 include :
1820 - python : 2.7
@@ -26,20 +28,37 @@ matrix:
2628 - python : 2.7
2729 env :
2830 - DEPENDS="numpy==1.5.1 pydicom==0.9.7"
31+ # pydicom 1.0 (currently unreleased)
32+ - python : 2.7
33+ env :
34+ - PYDICOM="v1.0"
2935 # Documentation doctests
3036 - python : 2.7
3137 env :
3238 - DOC_DOC_TEST=1
39+ - python : 2.7
40+ env :
41+ - INSTALL_TYPE=sdist
42+ - python : 2.7
43+ env :
44+ - INSTALL_TYPE=wheel
45+ - python : 2.7
46+ env :
47+ - INSTALL_TYPE=requirements
3348before_install :
49+ - source tools/travis_tools.sh
3450 - virtualenv --python=python venv
3551 - source venv/bin/activate
3652 - python --version # just to check
37- - pip install nose # always
38- - pip install --no-index -f http://travis-wheels.scikit-image.org $DEPENDS
53+ - pip install -U pip # upgrade to latest pip to find 3.5 wheels
54+ - retry pip install nose # always
55+ - wheelhouse_pip_install $DEPENDS
3956 # pydicom <= 0.9.8 doesn't install on python 3
4057 - if [ "${TRAVIS_PYTHON_VERSION:0:1}" == "2" ]; then
4158 if [ "$PYDICOM" == "1" ]; then
4259 pip install pydicom;
60+ elif [ "$PYDICOM" == "v1.0" ]; then
61+ pip install git+https://github.com/darcymason/pydicom.git@43f278444d5cb2e4648135d3edcd430c363c6975;
4362 fi
4463 fi
4564 - if [ "${COVERAGE}" == "1" ]; then
@@ -51,7 +70,21 @@ before_install:
5170 fi
5271# command to install dependencies
5372install :
54- - python setup.py install
73+ - |
74+ if [ "$INSTALL_TYPE" == "setup" ]; then
75+ python setup.py install
76+ elif [ "$INSTALL_TYPE" == "sdist" ]; then
77+ python setup_egg.py egg_info # check egg_info while we're here
78+ python setup_egg.py sdist
79+ wheelhouse_pip_install dist/*.tar.gz
80+ elif [ "$INSTALL_TYPE" == "wheel" ]; then
81+ pip install wheel
82+ python setup_egg.py bdist_wheel
83+ wheelhouse_pip_install dist/*.whl
84+ elif [ "$INSTALL_TYPE" == "requirements" ]; then
85+ wheelhouse_pip_install -r requirements.txt
86+ python setup.py install
87+ fi
5588 # Point to nibabel data directory
5689 - export NIBABEL_DATA_DIR="$PWD/nibabel-data"
5790# command to run tests, e.g. python setup.py test
0 commit comments