Bug#1013380: pybtex-docutils: FTBFS with Sphinx 5.0, docutils 0.18: dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.9 3.10" returned exit code 13

Lucas Nussbaum lucas at debian.org
Thu Jun 23 07:43:46 BST 2022


Source: pybtex-docutils
Version: 1.0.1-1
Severity: important
Tags: ftbfs
User: mitya57 at debian.org
Usertags: sphinx5.0

Hi,

pybtex-docutils fails to build with Sphinx 5.0 and docutils 0.18, both of which
are currently available in experimental.

Relevant part (hopefully):
> make[2]: Entering directory '/<<PKGBUILDDIR>>/doc'
> sphinx-build -b html -d _build/doctrees   . _build/html
> Running Sphinx v5.0.2
> making output directory... done
> loading intersphinx inventory from http://docs.python.org/objects.inv...
> WARNING: failed to reach any of the inventories with the following issues:
> intersphinx inventory 'http://docs.python.org/objects.inv' not fetchable due to <class 'requests.exceptions.ProxyError'>: HTTPConnectionPool(host='127.0.0.1', port=9): Max retries exceeded with url: http://docs.python.org/objects.inv (Caused by ProxyError('Cannot connect to proxy.', NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7ff2dd04a2c0>: Failed to establish a new connection: [Errno 111] Connection refused')))
> building [mo]: targets for 0 po files that are out of date
> building [html]: targets for 5 source files that are out of date
> updating environment: [new config] 5 added, 0 changed, 0 removed
> reading sources... [ 20%] api
> reading sources... [ 40%] changes
> reading sources... [ 60%] index
> reading sources... [ 80%] license
> reading sources... [100%] quickstart
> 
> looking for now-outdated files... none found
> pickling environment... done
> checking consistency... done
> preparing documents... done
> writing output... [ 20%] api
> writing output... [ 40%] changes
> writing output... [ 60%] index
> writing output... [ 80%] license
> writing output... [100%] quickstart
> 
> generating indices... genindex py-modindex done
> highlighting module code... [ 50%] builtins
> highlighting module code... [100%] pybtex_docutils
> 
> writing additional pages... search done
> copying static files... done
> copying extra files... done
> dumping search index in English (code: en)... done
> dumping object inventory... done
> build succeeded, 1 warning.
> 
> The HTML pages are in _build/html.
> 
> Build finished. The HTML pages are in _build/html.
> make[2]: Leaving directory '/<<PKGBUILDDIR>>/doc'
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
>    dh_auto_test -O--buildsystem=pybuild
> I: pybuild pybuild:300: python3 setup.py egg_info
> running egg_info
> creating src/pybtex_docutils.egg-info
> writing src/pybtex_docutils.egg-info/PKG-INFO
> writing dependency_links to src/pybtex_docutils.egg-info/dependency_links.txt
> writing entry points to src/pybtex_docutils.egg-info/entry_points.txt
> writing requirements to src/pybtex_docutils.egg-info/requires.txt
> writing top-level names to src/pybtex_docutils.egg-info/top_level.txt
> writing manifest file 'src/pybtex_docutils.egg-info/SOURCES.txt'
> reading manifest file 'src/pybtex_docutils.egg-info/SOURCES.txt'
> reading manifest template 'MANIFEST.in'
> warning: no previously-included files matching '*.pyc' found anywhere in distribution
> adding license file 'LICENSE.rst'
> writing manifest file 'src/pybtex_docutils.egg-info/SOURCES.txt'
> I: pybuild base:239: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pybtex-docutils/build; python3.9 -m pytest test
> ============================= test session starts ==============================
> platform linux -- Python 3.9.13, pytest-6.2.5, py-1.10.0, pluggy-1.0.0
> rootdir: /<<PKGBUILDDIR>>, configfile: pytest.ini
> collected 23 items
> 
> test/test_backend.py ..............F.F.F.                                [ 86%]
> test/test_find_plugin.py ..                                              [ 95%]
> test/test_install_example.py .                                           [100%]
> 
> =================================== FAILURES ===================================
> ___________________________ test_citation_reference ____________________________
> 
> entry = <pybtex.style.FormattedEntry object at 0x7f4e39d54340>
> document = <document: >
> 
>     def test_citation_reference(entry, document):
>         node = Backend().citation_reference(entry, document)
> >       assert str(node) == (
>             '<citation_reference ids="id1" refname="hongquin1997">'
>             'hongquin1997'
>             '</citation_reference>')
> E       assert '<citation_re...on_reference>' == '<citation_re...on_reference>'
> E         - <citation_reference ids="id1" refname="hongquin1997">hongquin1997</citation_reference>
> E         ?                           ^
> E         + <citation_reference ids="citation-reference-1" refname="hongquin1997">hongquin1997</citation_reference>
> E         ?                          + ^^^^^^^^^^^^^^^^^
> 
> test/test_backend.py:130: AssertionError
> ______________________ test_citation_reference_use_label _______________________
> 
> entry = <pybtex.style.FormattedEntry object at 0x7f4e39cb2bb0>
> document = <document: >
> 
>     def test_citation_reference_use_label(entry, document):
>         node = Backend().citation_reference(
>             entry, document, use_key_as_label=False)
> >       assert str(node) == (
>             '<citation_reference ids="id1" refname="hongquin1997">'
>             '1'
>             '</citation_reference>')
> E       assert '<citation_re...on_reference>' == '<citation_re...on_reference>'
> E         - <citation_reference ids="id1" refname="hongquin1997">1</citation_reference>
> E         ?                           ^
> E         + <citation_reference ids="citation-reference-1" refname="hongquin1997">1</citation_reference>
> E         ?                          + ^^^^^^^^^^^^^^^^^
> 
> test/test_backend.py:154: AssertionError
> ___________________________ test_footnote_reference ____________________________
> 
> entry = <pybtex.style.FormattedEntry object at 0x7f4e39cb1a60>
> document = <document: >
> 
>     def test_footnote_reference(entry, document):
>         node = Backend().footnote_reference(entry, document)
> >       assert str(node) == (
>             '<footnote_reference auto="1" ids="[\'id1\']" '
>             'refname="hongquin1997"/>')
> E       assert '<footnote_re...ngquin1997"/>' == '<footnote_re...ngquin1997"/>'
> E         - <footnote_reference auto="1" ids="['id1']" refname="hongquin1997"/>
> E         ?                                     ^^
> E         + <footnote_reference auto="1" ids="['footnote-reference-1']" refname="hongquin1997"/>
> E         ?                                     ^^^^^^^^^^^^^^^^^^^
> 
> test/test_backend.py:175: AssertionError
> =============================== warnings summary ===============================
> pybtex_docutils/__init__.py:39
>   /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pybtex-docutils/build/pybtex_docutils/__init__.py:39: DeprecationWarning: nodes.Text: initialization argument "rawsource" is ignored and will be removed in Docutils 1.3.
>     'ndash': [docutils.nodes.Text('\u2013', '\u2013')],
> 
> pybtex_docutils/__init__.py:40
>   /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pybtex-docutils/build/pybtex_docutils/__init__.py:40: DeprecationWarning: nodes.Text: initialization argument "rawsource" is ignored and will be removed in Docutils 1.3.
>     'newblock': [docutils.nodes.Text(' ', ' ')],
> 
> pybtex_docutils/__init__.py:41
>   /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pybtex-docutils/build/pybtex_docutils/__init__.py:41: DeprecationWarning: nodes.Text: initialization argument "rawsource" is ignored and will be removed in Docutils 1.3.
>     'nbsp': [docutils.nodes.Text('\u00a0', '\u00a0')],
> 
> .pybuild/cpython3_3.9_pybtex-docutils/build/test/test_backend.py: 30 warnings
> .pybuild/cpython3_3.9_pybtex-docutils/build/test/test_install_example.py: 10 warnings
>   /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pybtex-docutils/build/pybtex_docutils/__init__.py:61: DeprecationWarning: nodes.Text: initialization argument "rawsource" is ignored and will be removed in Docutils 1.3.
>     return [docutils.nodes.Text(str_, str_)]
> 
> -- Docs: https://docs.pytest.org/en/stable/warnings.html
> =========================== short test summary info ============================
> FAILED test/test_backend.py::test_citation_reference - assert '<citation_re.....
> FAILED test/test_backend.py::test_citation_reference_use_label - assert '<cit...
> FAILED test/test_backend.py::test_footnote_reference - assert '<footnote_re.....
> ================== 3 failed, 20 passed, 43 warnings in 0.16s ===================
> E: pybuild pybuild:369: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pybtex-docutils/build; python3.9 -m pytest test
> I: pybuild pybuild:300: python3 setup.py egg_info
> running egg_info
> writing src/pybtex_docutils.egg-info/PKG-INFO
> writing dependency_links to src/pybtex_docutils.egg-info/dependency_links.txt
> writing entry points to src/pybtex_docutils.egg-info/entry_points.txt
> writing requirements to src/pybtex_docutils.egg-info/requires.txt
> writing top-level names to src/pybtex_docutils.egg-info/top_level.txt
> reading manifest file 'src/pybtex_docutils.egg-info/SOURCES.txt'
> reading manifest template 'MANIFEST.in'
> warning: no previously-included files matching '*.pyc' found anywhere in distribution
> adding license file 'LICENSE.rst'
> writing manifest file 'src/pybtex_docutils.egg-info/SOURCES.txt'
> I: pybuild base:239: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pybtex-docutils/build; python3.10 -m pytest test
> ============================= test session starts ==============================
> platform linux -- Python 3.10.5, pytest-6.2.5, py-1.10.0, pluggy-1.0.0
> rootdir: /<<PKGBUILDDIR>>, configfile: pytest.ini
> collected 23 items
> 
> test/test_backend.py ..............F.F.F.                                [ 86%]
> test/test_find_plugin.py ..                                              [ 95%]
> test/test_install_example.py .                                           [100%]
> 
> =================================== FAILURES ===================================
> ___________________________ test_citation_reference ____________________________
> 
> entry = <pybtex.style.FormattedEntry object at 0x7f88a61e6e30>
> document = <document: >
> 
>     def test_citation_reference(entry, document):
>         node = Backend().citation_reference(entry, document)
> >       assert str(node) == (
>             '<citation_reference ids="id1" refname="hongquin1997">'
>             'hongquin1997'
>             '</citation_reference>')
> E       assert '<citation_re...on_reference>' == '<citation_re...on_reference>'
> E         - <citation_reference ids="id1" refname="hongquin1997">hongquin1997</citation_reference>
> E         ?                           ^
> E         + <citation_reference ids="citation-reference-1" refname="hongquin1997">hongquin1997</citation_reference>
> E         ?                          + ^^^^^^^^^^^^^^^^^
> 
> test/test_backend.py:130: AssertionError
> ______________________ test_citation_reference_use_label _______________________
> 
> entry = <pybtex.style.FormattedEntry object at 0x7f88a6064040>
> document = <document: >
> 
>     def test_citation_reference_use_label(entry, document):
>         node = Backend().citation_reference(
>             entry, document, use_key_as_label=False)
> >       assert str(node) == (
>             '<citation_reference ids="id1" refname="hongquin1997">'
>             '1'
>             '</citation_reference>')
> E       assert '<citation_re...on_reference>' == '<citation_re...on_reference>'
> E         - <citation_reference ids="id1" refname="hongquin1997">1</citation_reference>
> E         ?                           ^
> E         + <citation_reference ids="citation-reference-1" refname="hongquin1997">1</citation_reference>
> E         ?                          + ^^^^^^^^^^^^^^^^^
> 
> test/test_backend.py:154: AssertionError
> ___________________________ test_footnote_reference ____________________________
> 
> entry = <pybtex.style.FormattedEntry object at 0x7f88a61e6bc0>
> document = <document: >
> 
>     def test_footnote_reference(entry, document):
>         node = Backend().footnote_reference(entry, document)
> >       assert str(node) == (
>             '<footnote_reference auto="1" ids="[\'id1\']" '
>             'refname="hongquin1997"/>')
> E       assert '<footnote_re...ngquin1997"/>' == '<footnote_re...ngquin1997"/>'
> E         - <footnote_reference auto="1" ids="['id1']" refname="hongquin1997"/>
> E         ?                                     ^^
> E         + <footnote_reference auto="1" ids="['footnote-reference-1']" refname="hongquin1997"/>
> E         ?                                     ^^^^^^^^^^^^^^^^^^^
> 
> test/test_backend.py:175: AssertionError
> =============================== warnings summary ===============================
> pybtex_docutils/__init__.py:39
>   /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pybtex-docutils/build/pybtex_docutils/__init__.py:39: DeprecationWarning: nodes.Text: initialization argument "rawsource" is ignored and will be removed in Docutils 1.3.
>     'ndash': [docutils.nodes.Text('\u2013', '\u2013')],
> 
> pybtex_docutils/__init__.py:40
>   /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pybtex-docutils/build/pybtex_docutils/__init__.py:40: DeprecationWarning: nodes.Text: initialization argument "rawsource" is ignored and will be removed in Docutils 1.3.
>     'newblock': [docutils.nodes.Text(' ', ' ')],
> 
> pybtex_docutils/__init__.py:41
>   /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pybtex-docutils/build/pybtex_docutils/__init__.py:41: DeprecationWarning: nodes.Text: initialization argument "rawsource" is ignored and will be removed in Docutils 1.3.
>     'nbsp': [docutils.nodes.Text('\u00a0', '\u00a0')],
> 
> .pybuild/cpython3_3.10_pybtex-docutils/build/test/test_backend.py: 30 warnings
> .pybuild/cpython3_3.10_pybtex-docutils/build/test/test_install_example.py: 10 warnings
>   /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pybtex-docutils/build/pybtex_docutils/__init__.py:61: DeprecationWarning: nodes.Text: initialization argument "rawsource" is ignored and will be removed in Docutils 1.3.
>     return [docutils.nodes.Text(str_, str_)]
> 
> -- Docs: https://docs.pytest.org/en/stable/warnings.html
> =========================== short test summary info ============================
> FAILED test/test_backend.py::test_citation_reference - assert '<citation_re.....
> FAILED test/test_backend.py::test_citation_reference_use_label - assert '<cit...
> FAILED test/test_backend.py::test_footnote_reference - assert '<footnote_re.....
> ================== 3 failed, 20 passed, 43 warnings in 0.16s ===================
> E: pybuild pybuild:369: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_pybtex-docutils/build; python3.10 -m pytest test
> dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.9 3.10" returned exit code 13


The full build log is available from:
http://qa-logs.debian.net/2022/06/23/pybtex-docutils_1.0.1-1_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.

In case you have questions, please Cc sphinx at packages.debian.org on reply.

[1]: https://www.sphinx-doc.org/en/master/changes.html
[2]: https://repo.or.cz/docutils.git/blob/refs/tags/docutils-0.18.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=sphinx5.0;users=mitya57@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=sphinx5.0&fusertaguser=mitya57@debian.org&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



More information about the debian-science-maintainers mailing list