Skip to content

Commit a8fbb2c

Browse files
committed
MAINT,DOC: Update dependencies and warnings to ignore when building docs
1 parent 591765c commit a8fbb2c

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

dev.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -987,6 +987,10 @@ def task_meta(cls, list_targets, parallel, args, **kwargs):
987987
make_params = [f'PYTHON="{sys.executable}"']
988988
if parallel:
989989
make_params.append(f'SPHINXOPTS="-j{parallel}"')
990+
# Environment variables needed for notebooks
991+
992+
make_params.append('SQLALCHEMY_SILENCE_UBER_WARNING=1')
993+
make_params.append('JUPYTER_PLATFORM_DIRS=1')
990994

991995
return {
992996
'actions': [

doc/source/conf.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,12 @@
156156
warnings.filterwarnings( # matplotlib<->pyparsing issue
157157
'ignore', message="Exception creating Regex for oneOf.*",
158158
category=SyntaxWarning)
159+
warnings.filterwarnings( # docutils warning when using notebooks
160+
'ignore', message="The frontend.OptionParser class will be replaced",
161+
category=DeprecationWarning)
162+
warnings.filterwarnings(
163+
'ignore', message="The frontend.Option class will be removed in Docutils 0.21 or later.",
164+
category=DeprecationWarning)
159165
# warnings in examples (mostly) that we allow
160166
# TODO: eventually these should be eliminated!
161167
for key in (

environment.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ dependencies:
3838
- matplotlib
3939
- pydata-sphinx-theme==0.9.0
4040
- sphinx-design
41-
- docutils<0.18.1
4241
- jupytext
4342
- myst-nb
4443
# For linting

0 commit comments

Comments
 (0)