Browse Source

Update pytest and sphinx generation for new Jupyter notebooks

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

2
setup.cfg

@ -2,7 +2,7 @@
test=pytest
[tool:pytest]
addopts = --doctest-glob='*.rst'
addopts = --doctest-glob='*.rst' --nbval
testpaths = tests/ examples/ doc/
python_files = test*.py examples/*.py
python_functions = *_test test_* example_*

3
setup.py

@ -275,9 +275,10 @@ setup(
zip_safe=False,
install_requires=['pycarl>=2.0.4'],
setup_requires=['pytest-runner'],
tests_require=['pytest'],
tests_require=['pytest', 'nbval'],
extras_require={
"numpy": ["numpy"],
"doc": ["sphinx", "sphinx_bootstrap_theme", "nbsphinx", "ipython", "ipykernel"], # also requires pandoc to be installed
},
python_requires='>=3',
)

4
travis/build-helper.sh

@ -70,8 +70,10 @@ run() {
if [[ "$TASK" == *Documentation* ]]
then
# Install dependencies for documentation
apt-get install -qq -y pandoc
python setup.py easy_install "stormpy[doc]"
# Generate documentation
pip install sphinx sphinx_bootstrap_theme
cd doc
make html
touch build/html/.nojekyll

Loading…
Cancel
Save