Skip to content

Commit

Permalink
Fix Jupyter Notebook pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
alubbock committed Feb 14, 2020
1 parent 6983924 commit 7c91c3d
Show file tree
Hide file tree
Showing 6 changed files with 18,645 additions and 40 deletions.
2 changes: 1 addition & 1 deletion .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ install:
- pip install tables pytest nbval django
- python setup.py install
test_script:
- pytest --nbval
- pytest --nbval doc/tutorial.ipynb --sanitize-with doc/pytest-sanitize.ini
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ before_install:
install:
- python setup.py install
script:
- pytest --nbval --cov=thunor
- pytest --nbval doc/tutorial.ipynb --sanitize-with doc/pytest-sanitize.ini --cov=thunor
after_success:
- codecov
deploy:
Expand Down
3 changes: 3 additions & 0 deletions doc/pytest-sanitize.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[Section1]
regex: [0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}
replace: __plotly_uuid__
1 change: 1 addition & 0 deletions doc/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ https://github.com/Juanlu001/sphinx_rtd_theme/archive/js-head.zip
nbsphinx
jupyter_client
notebook
nbformat>4,<5 # https://github.com/plotly/plotly.py/issues/692
numpy
scipy
plotly==4.5.0
Expand Down
18,675 changes: 18,638 additions & 37 deletions doc/tutorial.ipynb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def main():
url='https://www.thunor.net',
packages=['thunor'],
install_requires=['numpy', 'scipy', 'pandas', 'plotly==4.5.0', 'seaborn', 'tables'],
tests_require=['pytest', 'nbval', 'django'],
tests_require=['pytest', 'nbval', 'django', 'nbformat>4,<5'],
cmdclass=versioneer.get_cmdclass(),
zip_safe=True,
classifiers=[
Expand Down

0 comments on commit 7c91c3d

Please sign in to comment.