Skip to content

Commit

Permalink
Upgrade SciPy to a required dependency and include Travis builds with…
Browse files Browse the repository at this point in the history
…out optional dependencies
  • Loading branch information
astrofrog committed May 6, 2015
1 parent 5927519 commit 0182960
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 16 deletions.
29 changes: 15 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ env:
- ASTROPY_VERSION=stable
- CONDA_INSTALL='conda install -c astropy-ci-extras --yes'
- PIP_INSTALL='pip install'
- OPTIONAL_DEPS=false
matrix:
- SETUP_CMD='egg_info'

Expand All @@ -25,36 +26,36 @@ matrix:
# development version of Astropy, which fixes some issues with
# coverage testing in affiliated packages.
- python: 2.7
env: ASTROPY_VERSION=development SETUP_CMD='test --coverage'
env: ASTROPY_VERSION=development SETUP_CMD='test --coverage' OPTIONAL_DEPS=true

# Check for sphinx doc build warnings - we do this first because it
# may run for a long time
- python: 2.7
env: SETUP_CMD='build_sphinx -w'
env: SETUP_CMD='build_sphinx -w' OPTIONAL_DEPS=true

# Try Astropy development version
# Try Astropy development version and disable optional deps
- python: 2.7
env: ASTROPY_VERSION=development SETUP_CMD='test'
- python: 3.3
env: ASTROPY_VERSION=development SETUP_CMD='test'

# Try all python versions with the latest numpy
- python: 2.6
env: SETUP_CMD='test'
env: SETUP_CMD='test' OPTIONAL_DEPS=true
- python: 2.7
env: SETUP_CMD='test'
env: SETUP_CMD='test' OPTIONAL_DEPS=true
- python: 3.3
env: SETUP_CMD='test'
env: SETUP_CMD='test' OPTIONAL_DEPS=true
- python: 3.4
env: SETUP_CMD='test'
env: SETUP_CMD='test' OPTIONAL_DEPS=true

# Try older numpy versions
- python: 2.7
env: NUMPY_VERSION=1.8 SETUP_CMD='test'
env: NUMPY_VERSION=1.8 SETUP_CMD='test' OPTIONAL_DEPS=true
- python: 2.7
env: NUMPY_VERSION=1.7 SETUP_CMD='test'
env: NUMPY_VERSION=1.7 SETUP_CMD='test' OPTIONAL_DEPS=true
- python: 2.7
env: NUMPY_VERSION=1.6 SETUP_CMD='test'
env: NUMPY_VERSION=1.6 SETUP_CMD='test' OPTIONAL_DEPS=true

before_install:

Expand Down Expand Up @@ -92,21 +93,21 @@ install:

# ASTROPY
- if [[ $SETUP_CMD != egg_info ]] && [[ $ASTROPY_VERSION == development ]]; then $PIP_INSTALL git+http://github.com/astropy/astropy.git#egg=astropy; fi
- if [[ $SETUP_CMD != egg_info ]] && [[ $ASTROPY_VERSION == stable ]]; then $CONDA_INSTALL numpy=$NUMPY_VERSION astropy nose pyqt matplotlib; fi
- if [[ $SETUP_CMD != egg_info ]] && [[ $ASTROPY_VERSION == stable ]]; then $CONDA_INSTALL numpy=$NUMPY_VERSION astropy scipy; fi

# OPTIONAL DEPENDENCIES
# Here you can add any dependencies your package may have. You can use
# conda for packages available through conda, or pip for any other
# packages. You should leave the `numpy=$NUMPY_VERSION` in the `conda`
# install since this ensures Numpy does not get automatically upgraded.
- if [[ $SETUP_CMD != egg_info ]]; then $CONDA_INSTALL numpy=$NUMPY_VERSION scipy ; fi
- if [[ $SETUP_CMD != egg_info ]]; then $PIP_INSTALL healpy wcsaxes; fi
# - if [[ $OPTIONAL_DEPS ]]; then $CONDA_INSTALL numpy=$NUMPY_VERSION ... ; fi
- if [[ $OPTIONAL_DEPS ]]; then $PIP_INSTALL healpy; fi

# DOCUMENTATION DEPENDENCIES
# build_sphinx needs sphinx and matplotlib (for plot_directive). Note that
# this matplotlib will *not* work with py 3.x, but our sphinx build is
# currently 2.7, so that's fine
- if [[ $SETUP_CMD == build_sphinx* ]]; then $CONDA_INSTALL numpy=$NUMPY_VERSION Sphinx=1.2 matplotlib; fi
- if [[ $SETUP_CMD == build_sphinx* ]]; then $CONDA_INSTALL numpy=$NUMPY_VERSION Sphinx=1.2 pyqt matplotlib; fi

# COVERAGE DEPENDENCIES
- if [[ $SETUP_CMD == 'test --coverage' ]]; then $PIP_INSTALL coverage coveralls; fi
Expand Down
4 changes: 2 additions & 2 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ This package has the following hard dependencies:

* `Astropy <http://www.astropy.org/>`__ 1.0 or later

and the following optional dependencies:
* `Scipy <http://www.scipy.org/>`__

* `Scipy <http://www.scipy.org/>`__ for interpolation
and the following optional dependencies:

* `healpy <http://healpy.readthedocs.org>`_ for HEALPIX image reprojection

Expand Down

0 comments on commit 0182960

Please sign in to comment.