Browse Source

Travis: install numpy for tests

refactoring
Matthias Volk 4 years ago
parent
commit
baf9f311db
No known key found for this signature in database GPG Key ID: 83A57678F739FCD3
  1. 2
      setup.py
  2. 2
      travis/build-helper.sh

2
setup.py

@ -278,7 +278,7 @@ setup(
tests_require=['pytest', 'nbval'],
extras_require={
"numpy": ["numpy"],
"doc": ["sphinx", "sphinx_bootstrap_theme", "nbsphinx", "ipython", "ipykernel"], # also requires pandoc to be installed
"doc": ["Sphinx", "sphinx-bootstrap-theme", "nbsphinx", "ipython", "ipykernel"], # also requires pandoc to be installed
},
python_requires='>=3',
)

2
travis/build-helper.sh

@ -64,6 +64,8 @@ run() {
# Perform tasks
if [[ "$TASK" == *Test* ]]
then
# Install dependencies for tests
pip install numpy # Used in sphinx tests
# Run tests
python setup.py test
fi

Loading…
Cancel
Save