Skip to content

Commit

Permalink
TST: test pip install with minimal system
Browse files Browse the repository at this point in the history
Don't preinstall packages, except numpy; let pip install dependencies
for some tests.
  • Loading branch information
matthew-brett committed Oct 17, 2015
1 parent db28f0a commit 2727fe3
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 6 deletions.
23 changes: 17 additions & 6 deletions .travis.yml
Expand Up @@ -33,17 +33,24 @@ matrix:
# Absolute minimum dependencies
- python: 2.7
env:
# Definitive source for these in nipy/info.py
- DEPENDS="numpy==1.6.0 scipy==0.9.0 sympy==0.7.0 nibabel==1.2.0"
# Test compiling against external lapack
- python: 3.4
env:
- NIPY_EXTERNAL_LAPACK=1
- python: 3.4
- python: 2.7
env:
- INSTALL_TYPE=sdist
- python: 3.4
- DEPENDS="numpy==1.6.0"
- python: 2.7
env:
- INSTALL_TYPE=wheel
- DEPENDS="numpy==1.6.0"
- python: 2.7
env:
- INSTALL_TYPE=requirements
- DEPENDS=

before_install:
- source tools/travis_tools.sh
Expand All @@ -64,12 +71,16 @@ install:
if [ "$INSTALL_TYPE" == "setup" ]; then
python setup.py install
elif [ "$INSTALL_TYPE" == "sdist" ]; then
python setup.py sdist
pip install dist/*.tar.gz
python setup_egg.py egg_info # check egg_info while we're here
python setup_egg.py sdist
wheelhouse_pip_install dist/*.tar.gz
elif [ "$INSTALL_TYPE" == "wheel" ]; then
pip install wheel
python setup.py bdist_wheel
pip install dist/*.whl
python setup_egg.py bdist_wheel
wheelhouse_pip_install dist/*.whl
elif [ "$INSTALL_TYPE" == "requirements" ]; then
wheelhouse_pip_install -r requirements.txt
python setup.py install
fi
# command to run tests, e.g. python setup.py test
script:
Expand Down
2 changes: 2 additions & 0 deletions nipy/info.py
Expand Up @@ -131,6 +131,8 @@

# minimum versions
# Update in readme text above
# Update in .travis.yml
# Update in requirements.txt
NUMPY_MIN_VERSION='1.6.0'
SCIPY_MIN_VERSION = '0.9.0'
NIBABEL_MIN_VERSION = '1.2'
Expand Down
5 changes: 5 additions & 0 deletions requirements.txt
@@ -0,0 +1,5 @@
# See nipy/info.py for requirement definitions
numpy>=1.6.0
scipy>=0.9.0
sympy>=0.7.0
nibabel>=1.2.0

0 comments on commit 2727fe3

Please sign in to comment.