Browse Source
Update pytest and sphinx generation for new Jupyter notebooks
refactoring
Matthias Volk
4 years ago
No known key found for this signature in database
GPG Key ID: 83A57678F739FCD3
3 changed files with
6 additions and
3 deletions
-
setup.cfg
-
setup.py
-
travis/build-helper.sh
|
|
@ -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_* |
|
|
@ -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', |
|
|
|
) |
|
|
@ -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 |
|
|
|