jupyter / jupyter-sphinx

Sphinx extension for rendering of Jupyter interactive widgets.
https://jupyter-sphinx.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
186 stars 65 forks source link

Broken with Sphinx 7.2 #232

Closed bnavigator closed 9 months ago

bnavigator commented 12 months ago

Sphinx 7.2 removed path from sphinx.testing.util.

https://github.com/sphinx-doc/sphinx/pull/11526 looks like you were supposed to use sphinx.testing.path, which is deprecated and will be removed in Sphinx 9

[   99s] ============================= test session starts ==============================
[   99s] platform linux -- Python 3.9.18, pytest-7.4.0, pluggy-1.0.0 -- /usr/bin/python3.9
[   99s] cachedir: .pytest_cache
[   99s] rootdir: /home/abuild/rpmbuild/BUILD/jupyter-sphinx-0.4.0
[  100s] collecting ... collected 0 items / 1 error
[  100s] 
[  100s] ==================================== ERRORS ====================================
[  100s] ____________________ ERROR collecting tests/test_execute.py ____________________
[  100s] ImportError while importing test module '/home/abuild/rpmbuild/BUILD/jupyter-sphinx-0.4.0/tests/test_execute.py'.
[  100s] Hint: make sure your test modules/packages have valid Python names.
[  100s] Traceback:
[  100s] /usr/lib64/python3.9/importlib/__init__.py:127: in import_module
[  100s]     return _bootstrap._gcd_import(name[level:], package, level)
[  100s] tests/test_execute.py:15: in <module>
[  100s]     from sphinx.testing.util import SphinxTestApp, assert_node, path
[  100s] E   ImportError: cannot import name 'path' from 'sphinx.testing.util' (/usr/lib/python3.9/site-packages/sphinx/testing/util.py)
[  100s] =========================== short test summary info ============================
[  100s] ERROR tests/test_execute.py
[  100s] !!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
[  100s] =============================== 1 error in 0.42s ===============================