Source: sphinxcontrib-jquery
Version: 4.1-2
Severity: important
Tags: ftbfs
User: [email protected]
Usertags: sphinx7.1
Hi,
sphinxcontrib-jquery fails to build with Sphinx 7.1 and docutils 0.20, both of
which
are currently available in experimental.
Relevant part (hopefully):
> debian/rules binary
> dh binary --with python3 --buildsystem=pybuild
> dh_update_autotools_config -O--buildsystem=pybuild
> dh_autoreconf -O--buildsystem=pybuild
> dh_auto_configure -O--buildsystem=pybuild
> dh_auto_build -O--buildsystem=pybuild
> I: pybuild plugin_pyproject:107: Building wheel for python3.11 with "build"
> module
> I: pybuild base:240: python3.11 -m build --skip-dependency-check
> --no-isolation --wheel --outdir
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sphinxcontrib.jquery
> * Building wheel...
> Successfully built sphinxcontrib_jquery-4.1-py2.py3-none-any.whl
> I: pybuild plugin_pyproject:119: Unpacking wheel built for python3.11 with
> "installer" module
> dh_auto_test -O--buildsystem=pybuild
> I: pybuild base:240: cd
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sphinxcontrib.jquery/build;
> python3.11 -m pytest tests
> ============================= test session starts
> ==============================
> platform linux -- Python 3.11.4, pytest-7.4.0, pluggy-1.2.0
> rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sphinxcontrib.jquery/build
> collected 4 items
>
> tests/test_jquery_installed.py FFs.
> [100%]
>
> =================================== FAILURES
> ===================================
> __________________ test_jquery_installed_sphinx_ge_60_use_sri
> __________________
>
> blank_app = <function blank_app.<locals>.inner at 0x7f89a15b6f20>
>
> @pytest.mark.skipif(sphinx.version_info[:2] < (6, 0),
> reason="Requires Sphinx 6.0 or greater")
> def test_jquery_installed_sphinx_ge_60_use_sri(blank_app):
> out_dir = blank_app(confoverrides={"extensions":
> ["sphinxcontrib.jquery"], "jquery_use_sri": True})
>
> text = out_dir.joinpath("index.html").read_text(encoding="utf-8")
> > assert ('<script '
>
> 'integrity="sha384-lSZeSIVKp9myfKbDQ3GkN/KHjUc+mzg17VKDN4Y2kUeBSJioB9QSM639vM9fuY//"
> '
>
> 'src="_static/_sphinx_javascript_frameworks_compat.js"></script>') in text
> E assert '<script
> integrity="sha384-lSZeSIVKp9myfKbDQ3GkN/KHjUc+mzg17VKDN4Y2kUeBSJioB9QSM639vM9fuY//"
> src="_static/_sphinx_javascript_frameworks_compat.js"></script>' 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>'
>
> tests/test_jquery_installed.py:41: AssertionError
> ______________________ test_jquery_installed_sphinx_ge_60
> ______________________
>
> blank_app = <function blank_app.<locals>.inner at 0x7f89a15b7060>
>
> @pytest.mark.skipif(sphinx.version_info[:2] < (6, 0),
> reason="Requires Sphinx 6.0 or greater")
> def test_jquery_installed_sphinx_ge_60(blank_app):
> out_dir = blank_app(confoverrides={"extensions":
> ["sphinxcontrib.jquery"]})
>
> text = out_dir.joinpath("index.html").read_text(encoding="utf-8")
> > assert ('<script '
> 'src="_static/jquery.js"></script>') in text
> E assert '<script src="_static/jquery.js"></script>' 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>'
>
> tests/test_jquery_installed.py:56: 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
>
> -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
> =========================== short test summary info
> ============================
> FAILED
> tests/test_jquery_installed.py::test_jquery_installed_sphinx_ge_60_use_sri
> FAILED tests/test_jquery_installed.py::test_jquery_installed_sphinx_ge_60 -
> a...
> ============== 2 failed, 1 passed, 1 skipped, 1 warning in 0.84s
> ===============
> E: pybuild pybuild:388: test: plugin pyproject failed with: exit code=1: cd
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sphinxcontrib.jquery/build;
> python3.11 -m pytest tests
> dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.11
> returned exit code 13
The full build log is available from:
http://qa-logs.debian.net/2023/07/30/exp/sphinxcontrib-jquery_4.1-2_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