We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
With Sphinx 7.4 (and possibly earlier) The test suite fails:
[ 181s] ____________________________ test_builder_priority _____________________________ [ 181s] [ 181s] doctree = <function doctree.<locals>.doctree at 0x7fdfe8f5c040> [ 181s] [ 181s] def test_builder_priority(doctree): [ 181s] source = """ [ 181s] .. jupyter-execute:: [ 181s] [ 181s] display({"text/plain": "I am html output", "text/latex": "I am latex"}) [ 181s] """ [ 181s] config = ( [ 181s] "render_priority_html = ['text/plain', 'text/latex']\n" [ 181s] "render_priority_latex = ['text/latex', 'text/plain']" [ 181s] ) [ 181s] _, app, _ = doctree(source, config=config, return_all=True, buildername="html") [ 181s] html = (Path(app.outdir) / "index.html").read_text() [ 181s] assert "I am html output" in html [ 181s] _, app, _ = doctree(source, config=config, return_all=True, buildername="latex") [ 181s] > latex = (Path(app.outdir) / "python.tex").read_text() [ 181s] [ 181s] tests/test_execute.py:780: [ 181s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 181s] /usr/lib64/python3.10/pathlib.py:1134: in read_text [ 181s] with self.open(mode='r', encoding=encoding, errors=errors) as f: [ 181s] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [ 181s] [ 181s] self = PosixPath('/tmp/tmp92typn82/_build/latex/python.tex'), mode = 'r' [ 181s] buffering = -1, encoding = 'locale', errors = None, newline = None [ 181s] [ 181s] def open(self, mode='r', buffering=-1, encoding=None, [ 181s] errors=None, newline=None): [ 181s] """ [ 181s] Open the file pointed by this path and return a file object, as [ 181s] the built-in open() function does. [ 181s] """ [ 181s] if "b" not in mode: [ 181s] encoding = io.text_encoding(encoding) [ 181s] > return self._accessor.open(self, mode, buffering, encoding, errors, [ 181s] newline) [ 181s] E FileNotFoundError: [Errno 2] No such file or directory: '/tmp/tmp92typn82/_build/latex/python.tex'
The expected output is actually in _build/latex/projectnamenotset.tex
_build/latex/projectnamenotset.tex
This patch helps for the last release:
diff -ur jupyter-sphinx-0.5.3.orig/tests/test_execute.py jupyter-sphinx-0.5.3/tests/test_execute.py --- jupyter-sphinx-0.5.3.orig/tests/test_execute.py 2024-09-15 20:14:34.086132369 +0200 +++ jupyter-sphinx-0.5.3/tests/test_execute.py 2024-09-15 20:15:06.323782290 +0200 @@ -52,6 +52,7 @@ source_trees.append(src_dir) conf_contents = "extensions = ['%s']" % entrypoint + conf_contents += "\nproject = 'python'" if config is not None: conf_contents += "\n" + config (src_dir / "conf.py").write_text(conf_contents, encoding="utf8")
But it would have to be adapted in order to fit with #265
The text was updated successfully, but these errors were encountered:
Update python-jupyter-sphinx to version 0.5.3 / rev 11 via SR 1201287
6770335
https://build.opensuse.org/request/show/1201287 by user bnavigator + anag+factory - Skip failing tests due to missing bash-kernel - Add jupyter-sphinx-sphinx7.patch gh#jupyter/jupyter-sphinx#280
No branches or pull requests
With Sphinx 7.4 (and possibly earlier) The test suite fails:
The expected output is actually in
_build/latex/projectnamenotset.tex
This patch helps for the last release:
But it would have to be adapted in order to fit with #265
The text was updated successfully, but these errors were encountered: