-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make scipy import optional (issue #25)
- moved scipy.ndimage into interpolation method of Grid; will only be needed when interpolation is required - added build matrix tests with/without scipy - decorated tests with dec.skipif(module_not_found('scipy')) (from MDAnalysis) (added module_not_found to test/__init__.py; this also means that the tests are included in the package) - release as 0.3.2 - fixes #25
- Loading branch information
Showing
8 changed files
with
60 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,14 @@ | ||
env: | ||
global: | ||
- secure: "BzLdQUSTs6dsngJfNGjLtG++Gmi4KzYv7FEwVqUB6pXKnpMIpv+/md2zkH/Lo3UtdioR2SKytXk3/40tCbpUVD2Yjb+yc5WyyeFLQF9KeF2k9gZkmC35iSbTWt9hK+mnkdJidCK5xbfrXEbZx4FpqyDGFl8GCCjJlPOQ/KEcRVQ=" | ||
- GH_DOC_BRANCH: master | ||
- GH_REPOSITORY: github.com/MDAnalysis/GridDataFormats.git | ||
- GIT_CI_USER: TravisCI | ||
- GIT_CI_EMAIL: [email protected] | ||
- MDA_DOCDIR: doc/html | ||
matrix: | ||
- SETUP=full | ||
- SETUP=minimal | ||
language: python | ||
python: | ||
- "2.7" | ||
|
@@ -17,11 +28,12 @@ before_install: | |
- export PATH=/home/travis/miniconda/bin:$PATH | ||
- conda update --yes conda | ||
install: | ||
- conda create --yes -q -n pyenv python=$TRAVIS_PYTHON_VERSION numpy=1.9.2 scipy=0.16.0 nose=1.3.7 six sphinx=1.3 | ||
- if [[ $SETUP == 'full' ]]; then conda create --yes -q -n pyenv python=$TRAVIS_PYTHON_VERSION numpy=1.9.2 scipy=0.16.0 nose=1.3.7 sphinx=1.3; fi | ||
- if [[ $SETUP == 'minimal' ]]; then conda create --yes -q -n pyenv python=$TRAVIS_PYTHON_VERSION numpy=1.9.2 nose=1.3.7 sphinx=1.3; fi | ||
- source activate pyenv | ||
- case "$TRAVIS_PYTHON_VERSION" in 2.*) SPECIAL_PACKAGES="mock";; 3.*) SPECIAL_PACKAGES="";; esac | ||
- pip install coveralls tempdir $SPECIAL_PACKAGES | ||
|
||
- pip install coveralls tempdir $SPECIAL_PACKAGES | ||
- pip install -v ./ | ||
script: | ||
- nosetests -v --with-coverage --cover-package gridData --process-timeout=120 --processes=2 gridData | ||
- | | ||
|
@@ -37,12 +49,3 @@ after_success: | |
test ${TRAVIS_BRANCH} == ${GH_DOC_BRANCH} && \ | ||
test "${TRAVIS_BUILD_NUMBER}.1" == "${TRAVIS_JOB_NUMBER}" && \ | ||
bash ./ci/deploy_docs.sh | ||
env: | ||
global: | ||
- secure: "BzLdQUSTs6dsngJfNGjLtG++Gmi4KzYv7FEwVqUB6pXKnpMIpv+/md2zkH/Lo3UtdioR2SKytXk3/40tCbpUVD2Yjb+yc5WyyeFLQF9KeF2k9gZkmC35iSbTWt9hK+mnkdJidCK5xbfrXEbZx4FpqyDGFl8GCCjJlPOQ/KEcRVQ=" | ||
- GH_DOC_BRANCH: master | ||
- GH_REPOSITORY: github.com/MDAnalysis/GridDataFormats.git | ||
- GIT_CI_USER: TravisCI | ||
- GIT_CI_EMAIL: [email protected] | ||
- MDA_DOCDIR: doc/html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
include README README.rst INSTALL CHANGELOG COPYING COPYING.LESSER AUTHORS | ||
include ez_setup.py setup.py | ||
include setup.py | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# utilities for running the tests | ||
|
||
import importlib | ||
|
||
def module_not_found(module): | ||
try: | ||
importlib.import_module(module) | ||
except ImportError: | ||
return True | ||
else: | ||
return False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters