Skip to content

Improved default build/test environment

Duncan Macleod requested to merge github/fork/duncanmmacleod/clean-build into master

This PR modifies the build script (setup.py) and the test suite to ensure that the tests run end-to-end without any failures on a minimal install, e.g. after

git clone https://github.com/gwpy/gwpy
cd gwpy
pip install .

followed by

python setup.py test

The commits are individually simple and amount to

  • making sure all required dependencies are listed in install_requires or tests_require as appropriate
  • moving some optional imports to fail at run time rather than import
  • adding skipUnless decorators to all tests requiring h5py or dqsegdb

Merge request reports