scot-dev / scot

EEG/MEG Source Connectivity Toolbox in Python
http://scot-dev.github.io/scot-doc/index.html
MIT License
58 stars 23 forks source link

Create testing env without optional dependencies #166

Open cbrnr opened 8 years ago

cbrnr commented 8 years ago

Our only required dependencies are numpy and scipy. Therefore, we should create a testing env in Travis which includes only these two packages, and not matplotlib, scikit-learn, and mne. This will likely result in some of our tests failing - maybe we should decorate specific tests if they require optional packages (e.g. @require_sklearn, @require_matplotlib, @require_mne).

mbillingr commented 8 years ago

I have been wondering how to skip certain tests depending on the environment. Decorators seem like a good idea.

cbrnr commented 8 years ago

Yeah, that's how e.g. the MNE folks do it. See https://github.com/mne-tools/mne-python/blob/master/mne/utils.py around line 700.