Source: sphinx-gallery
Version: 0.10.1-3
Severity: important
Tags: ftbfs
User: [email protected]
Usertags: sphinx7.1

Hi,

sphinx-gallery fails to build with Sphinx 7.1 and docutils 0.20, both of which
are currently available in experimental.

Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> dh_auto_test -- --system=custom --test-args='{interpreter} -m pytest 
> --ignore=sphinx_gallery/tests/test_full.py -k "not 
> test_embed_code_links_get_data" sphinx_gallery/tests'
> dh_auto_test: warning: Compatibility levels before 10 are deprecated (level 9 
> in use)
> I: pybuild base:240: python3.11 -m pytest 
> --ignore=sphinx_gallery/tests/test_full.py -k "not 
> test_embed_code_links_get_data" sphinx_gallery/tests
> ============================= test session starts 
> ==============================
> platform linux -- Python 3.11.4, pytest-7.4.0, pluggy-1.2.0
> Sphinx:  7.1.1 (/usr/lib/python3/dist-packages/sphinx/__init__.py)
> rootdir: /<<PKGBUILDDIR>>
> configfile: setup.cfg
> plugins: cov-4.1.0
> collected 161 items / 1 deselected / 160 selected
> 
> sphinx_gallery/tests/test_backreferences.py .......                      [  
> 4%]
> sphinx_gallery/tests/test_binder.py ..                                   [  
> 5%]
> sphinx_gallery/tests/test_docs_resolv.py ..                              [  
> 6%]
> sphinx_gallery/tests/test_full_noexec.py .                               [  
> 7%]
> sphinx_gallery/tests/test_gen_gallery.py ............................... [ 
> 26%]
> .                                                                        [ 
> 27%]
> sphinx_gallery/tests/test_gen_rst.py ................................... [ 
> 49%]
> ................................                                         [ 
> 69%]
> sphinx_gallery/tests/test_load_style.py F                                [ 
> 70%]
> sphinx_gallery/tests/test_notebook.py ..............                     [ 
> 78%]
> sphinx_gallery/tests/test_py_source_parser.py .................          [ 
> 89%]
> sphinx_gallery/tests/test_scrapers.py ...s.......                        [ 
> 96%]
> sphinx_gallery/tests/test_sorting.py .                                   [ 
> 96%]
> sphinx_gallery/tests/test_sphinx_compatibility.py ...                    [ 
> 98%]
> sphinx_gallery/tests/test_utils.py ..                                    
> [100%]
> 
> =================================== FAILURES 
> ===================================
> _______________________________ test_load_style 
> ________________________________
> 
> sphinx_app_wrapper = <sphinx_gallery.tests.conftest.SphinxAppWrapper object 
> at 0x7f8bcc5a2390>
> 
>     @pytest.mark.conf_file(extensions=['sphinx_gallery.load_style'])
>     def test_load_style(sphinx_app_wrapper):
>         """Testing that style loads properly."""
>         sphinx_app = sphinx_app_wrapper.build_sphinx_app()
>         cfg = sphinx_app.config
>         assert cfg.project == "Sphinx-Gallery <Tests>"
>         build_warn = sphinx_app._warning.getvalue()
>         assert build_warn == ''
>         index_html = os.path.join(
>             sphinx_app_wrapper.outdir, 'index.html')
>         assert os.path.isfile(index_html)
>         with open(index_html, 'r') as fid:
>             content = fid.read()
> >       assert 'link rel="stylesheet" type="text/css" 
> > href="_static/sg_gallery.css"' in content  # noqa: E501
> E       assert 'link rel="stylesheet" type="text/css" 
> href="_static/sg_gallery.css"' in '<!DOCTYPE html>\n\n<html lang="en">\n  
> <head>\n    <meta charset="utf-8" />\n    <meta name="viewport" 
> content="width...ref="_sources/index.rst.txt"\n          rel="nofollow">Page 
> source</a>\n    </div>\n\n    \n\n    \n  </body>\n</html>'
> 
> sphinx_gallery/tests/test_load_style.py:18: AssertionError
> =============================== warnings summary 
> ===============================
> ../../../usr/lib/python3/dist-packages/babel/messages/catalog.py:13
>   /usr/lib/python3/dist-packages/babel/messages/catalog.py:13: 
> DeprecationWarning: 'cgi' is deprecated and slated for removal in Python 3.13
>     from cgi import parse_header
> 
> sphinx_gallery/sphinx_compatibility.py:71
>   /<<PKGBUILDDIR>>/sphinx_gallery/sphinx_compatibility.py:71: 
> RemovedInSphinx80Warning: The alias 'sphinx.util.status_iterator' is 
> deprecated, use 'sphinx.util.display.status_iterator' instead. Check CHANGES 
> for Sphinx API modifications.
>     status_iterator = sphinx.util.status_iterator
> 
> sphinx_gallery/tests/test_backreferences.py: 6 warnings
> sphinx_gallery/tests/test_full_noexec.py: 28 warnings
> sphinx_gallery/tests/test_gen_gallery.py: 192 warnings
> sphinx_gallery/tests/test_gen_rst.py: 68 warnings
> sphinx_gallery/tests/test_notebook.py: 4 warnings
> sphinx_gallery/tests/test_py_source_parser.py: 2 warnings
> sphinx_gallery/tests/test_sorting.py: 4 warnings
>   /<<PKGBUILDDIR>>/sphinx_gallery/py_source_parser.py:105: 
> DeprecationWarning: distutils Version classes are deprecated. Use 
> packaging.version instead.
>     if LooseVersion(sys.version) >= LooseVersion('3.7'):
> 
> -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
> ============================= slowest 5 durations 
> ==============================
> 9.76s setup    sphinx_gallery/tests/test_full_noexec.py::test_dummy_image
> 1.03s call     
> sphinx_gallery/tests/test_gen_gallery.py::test_failing_examples_raise_exception
> 0.84s call     
> sphinx_gallery/tests/test_gen_gallery.py::test_only_warn_on_example_error
> 0.78s call     
> sphinx_gallery/tests/test_gen_gallery.py::test_show_memory_callable
> 0.76s call     
> sphinx_gallery/tests/test_gen_gallery.py::test_examples_not_expected_to_pass
> =========================== short test summary info 
> ============================
> SKIPPED [1] sphinx_gallery/tests/test_scrapers.py:118: Mayavi not installed
> FAILED sphinx_gallery/tests/test_load_style.py::test_load_style - assert 
> 'lin...
> ==== 1 failed, 158 passed, 1 skipped, 1 deselected, 306 warnings in 23.88s 
> =====
> E: pybuild pybuild:388: test: plugin custom failed with: exit code=1: 
> python3.11 -m pytest --ignore=sphinx_gallery/tests/test_full.py -k "not 
> test_embed_code_links_get_data" sphinx_gallery/tests
> dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.11 
> --system=custom "--test-args={interpreter} -m pytest 
> --ignore=sphinx_gallery/tests/test_full.py -k \"not 
> test_embed_code_links_get_data\" sphinx_gallery/tests" returned exit code 13


The full build log is available from:
http://qa-logs.debian.net/2023/07/30/exp/sphinx-gallery_0.10.1-3_unstable_sphinx-exp.log

Please see [1] for Sphinx changelog and [2] for Docutils changelog.

Also see [3] for the list of deprecated/removed APIs in Sphinx and possible
alternatives to them.

Some notable changes in Sphinx 6 and Sphinx 7:

- Sphinx no longer includes jquery.js and underscore.js by default.
  Please use python3-sphinxcontrib.jquery package if you are using a custom
  template and it still needs jquery.

- The setup.py build_sphinx command was removed. Please instead call
  sphinx-build or "python3 -m sphinx" directly.

- For packages using the extlinks extension, the caption should contain
  exactly one "%s" placeholder (if caption is not None).

In case you have questions, please Cc [email protected] on reply.

[1]: https://www.sphinx-doc.org/en/master/changes.html
[2]: 
https://repo.or.cz/docutils.git/blob/refs/tags/docutils-0.20.1:/RELEASE-NOTES.txt
[3]: 
https://www.sphinx-doc.org/en/master/extdev/deprecated.html#dev-deprecated-apis

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=sphinx7.1;[email protected]
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=sphinx7.1&[email protected]&allbugs=1&cseverity=1&ctags=1&caffected=1#results

If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

Reply via email to