Source: sphinxcontrib-mermaid
Version: 0.9.2-1
Severity: important
Tags: ftbfs
User: [email protected]
Usertags: sphinx7.1

Hi,

sphinxcontrib-mermaid 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 --buildsystem=pybuild
>    dh_update_autotools_config -O--buildsystem=pybuild
>    dh_autoreconf -O--buildsystem=pybuild
>    dh_auto_configure -O--buildsystem=pybuild
> I: pybuild base:240: python3.11 setup.py config 
> /usr/lib/python3/dist-packages/setuptools/dist.py:945: 
> SetuptoolsDeprecationWarning: The namespace_packages parameter is deprecated.
> !!
> 
>         
> ********************************************************************************
>         Please replace its usage with implicit namespaces (PEP 420).
> 
>         See 
> https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
>  for details.
>         
> ********************************************************************************
> 
> !!
>   ep.load()(self, ep.name, value)
> running config
>    dh_auto_build -O--buildsystem=pybuild
> I: pybuild base:240: /usr/bin/python3 setup.py build 
> /usr/lib/python3/dist-packages/setuptools/dist.py:945: 
> SetuptoolsDeprecationWarning: The namespace_packages parameter is deprecated.
> !!
> 
>         
> ********************************************************************************
>         Please replace its usage with implicit namespaces (PEP 420).
> 
>         See 
> https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
>  for details.
>         
> ********************************************************************************
> 
> !!
>   ep.load()(self, ep.name, value)
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/sphinxcontrib
> copying sphinxcontrib/mermaid.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/sphinxcontrib
> copying sphinxcontrib/__init__.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/sphinxcontrib
> copying sphinxcontrib/exceptions.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/sphinxcontrib
> copying sphinxcontrib/autoclassdiag.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/sphinxcontrib
> running egg_info
> creating sphinxcontrib_mermaid.egg-info
> writing sphinxcontrib_mermaid.egg-info/PKG-INFO
> writing dependency_links to 
> sphinxcontrib_mermaid.egg-info/dependency_links.txt
> writing namespace_packages to 
> sphinxcontrib_mermaid.egg-info/namespace_packages.txt
> writing top-level names to sphinxcontrib_mermaid.egg-info/top_level.txt
> writing manifest file 'sphinxcontrib_mermaid.egg-info/SOURCES.txt'
> reading manifest file 'sphinxcontrib_mermaid.egg-info/SOURCES.txt'
> reading manifest template 'MANIFEST.in'
> warning: no previously-included files matching '*.pyc' found anywhere in 
> distribution
> warning: no previously-included files found matching '.gitignore'
> adding license file 'LICENSE.rst'
> writing manifest file 'sphinxcontrib_mermaid.egg-info/SOURCES.txt'
> I: pybuild pybuild:333: PYTHONPATH=/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11 
> python3 -m sphinx -b html -N -D html_last_updated_fmt="11 June 2023" docs/ 
> build/html; PYTHONPATH=/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11 python3 -m 
> sphinx -b man -N -D html_last_updated_fmt="11 June 2023" docs/ build/man; cp 
> debian/external-graphics/directive.gif build/html
> Running Sphinx v7.1.1
> making output directory... done
> building [mo]: targets for 0 po files that are out of date
> writing output... 
> building [html]: targets for 2 source files that are out of date
> updating environment: [new config] 2 added, 0 changed, 0 removed
> reading sources... [ 50%] index
> 
> Mermaid error:
> Could not import sphinx.util.SphinxParallelError (exception: No module named 
> 'sphinx.util.SphinxParallelError')
> Running Sphinx v7.1.1
> making output directory... done
> building [mo]: targets for 0 po files that are out of date
> writing output... 
> building [man]: all manpages
> updating environment: [new config] 2 added, 0 changed, 0 removed
> reading sources... [ 50%] index
> 
> Mermaid error:
> Could not import sphinx.util.SphinxParallelError (exception: No module named 
> 'sphinx.util.SphinxParallelError')
>    dh_auto_test -O--buildsystem=pybuild
> I: pybuild base:240: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/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>>
> collected 7 items
> 
> tests/test_html.py .......                                               
> [100%]
> 
> =============================== 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
> 
> .pybuild/cpython3_3.11/build/tests/test_html.py::test_html_raw
>   /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/sphinxcontrib/__init__.py:12: 
> DeprecationWarning: pkg_resources is deprecated as an API. See 
> https://setuptools.pypa.io/en/latest/pkg_resources.html
>     __import__('pkg_resources').declare_namespace(__name__)
> 
> .pybuild/cpython3_3.11/build/tests/test_html.py::test_html_raw
>   /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/sphinxcontrib/__init__.py:12: 
> DeprecationWarning: Deprecated call to 
> `pkg_resources.declare_namespace('sphinxcontrib')`.
>   Implementing implicit namespace packages (as specified in PEP 420) is 
> preferred to `pkg_resources.declare_namespace`. See 
> https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
>     __import__('pkg_resources').declare_namespace(__name__)
> 
> .pybuild/cpython3_3.11/build/tests/test_html.py::test_html_raw_from_markdown
>   /usr/lib/python3/dist-packages/myst_parser/mdit_to_docutils/base.py:66: 
> DeprecationWarning: The frontend.OptionParser class will be replaced by a 
> subclass of argparse.ArgumentParser in Docutils 0.21 or later.
>     settings = OptionParser(components=(parser_cls,)).get_default_values()
> 
> .pybuild/cpython3_3.11/build/tests/test_html.py: 69 warnings
>   /usr/lib/python3.11/optparse.py:1000: DeprecationWarning: The 
> frontend.Option class will be removed in Docutils 0.21 or later.
>     option = self.option_class(*args, **kwargs)
> 
> -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
> ======================== 7 passed, 73 warnings in 1.57s 
> ========================
>    create-stamp debian/debhelper-build-stamp
>    dh_testroot -O--buildsystem=pybuild
>    dh_prep -O--buildsystem=pybuild
>    dh_auto_install --destdir=debian/python3-sphinxcontrib-mermaid/ 
> -O--buildsystem=pybuild
> I: pybuild base:240: /usr/bin/python3 setup.py install --root 
> /<<PKGBUILDDIR>>/debian/python3-sphinxcontrib-mermaid 
> /usr/lib/python3/dist-packages/setuptools/dist.py:945: 
> SetuptoolsDeprecationWarning: The namespace_packages parameter is deprecated.
> !!
> 
>         
> ********************************************************************************
>         Please replace its usage with implicit namespaces (PEP 420).
> 
>         See 
> https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
>  for details.
>         
> ********************************************************************************
> 
> !!
>   ep.load()(self, ep.name, value)
> running install
> /usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: 
> SetuptoolsDeprecationWarning: setup.py install is deprecated.
> !!
> 
>         
> ********************************************************************************
>         Please avoid running ``setup.py`` directly.
>         Instead, use pypa/build, pypa/installer or other
>         standards-based tools.
> 
>         See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html 
> for details.
>         
> ********************************************************************************
> 
> !!
>   self.initialize_options()
> running build
> running build_py
> running egg_info
> writing sphinxcontrib_mermaid.egg-info/PKG-INFO
> writing dependency_links to 
> sphinxcontrib_mermaid.egg-info/dependency_links.txt
> writing namespace_packages to 
> sphinxcontrib_mermaid.egg-info/namespace_packages.txt
> writing top-level names to sphinxcontrib_mermaid.egg-info/top_level.txt
> reading manifest file 'sphinxcontrib_mermaid.egg-info/SOURCES.txt'
> reading manifest template 'MANIFEST.in'
> warning: no previously-included files matching '*.pyc' found anywhere in 
> distribution
> warning: no previously-included files found matching '.gitignore'
> adding license file 'LICENSE.rst'
> writing manifest file 'sphinxcontrib_mermaid.egg-info/SOURCES.txt'
> running install_lib
> copying sphinxcontrib/mermaid.py -> 
> /<<PKGBUILDDIR>>/debian/python3-sphinxcontrib-mermaid/usr/lib/python3.11/dist-packages/sphinxcontrib
> Skipping installation of 
> /<<PKGBUILDDIR>>/debian/python3-sphinxcontrib-mermaid/usr/lib/python3.11/dist-packages/sphinxcontrib/__init__.py
>  (namespace package)
> copying sphinxcontrib/exceptions.py -> 
> /<<PKGBUILDDIR>>/debian/python3-sphinxcontrib-mermaid/usr/lib/python3.11/dist-packages/sphinxcontrib
> copying sphinxcontrib/autoclassdiag.py -> 
> /<<PKGBUILDDIR>>/debian/python3-sphinxcontrib-mermaid/usr/lib/python3.11/dist-packages/sphinxcontrib
> copying sphinxcontrib/__pycache__/exceptions.cpython-311.pyc -> 
> /<<PKGBUILDDIR>>/debian/python3-sphinxcontrib-mermaid/usr/lib/python3.11/dist-packages/sphinxcontrib/__pycache__
> copying sphinxcontrib/__pycache__/autoclassdiag.cpython-311.pyc -> 
> /<<PKGBUILDDIR>>/debian/python3-sphinxcontrib-mermaid/usr/lib/python3.11/dist-packages/sphinxcontrib/__pycache__
> copying sphinxcontrib/__pycache__/mermaid.cpython-311.pyc -> 
> /<<PKGBUILDDIR>>/debian/python3-sphinxcontrib-mermaid/usr/lib/python3.11/dist-packages/sphinxcontrib/__pycache__
> Skipping installation of 
> /<<PKGBUILDDIR>>/debian/python3-sphinxcontrib-mermaid/usr/lib/python3.11/dist-packages/sphinxcontrib/__pycache__/__init__.cpython-311.pyc
>  (namespace package)
> byte-compiling 
> /<<PKGBUILDDIR>>/debian/python3-sphinxcontrib-mermaid/usr/lib/python3.11/dist-packages/sphinxcontrib/mermaid.py
>  to mermaid.cpython-311.pyc
> byte-compiling 
> /<<PKGBUILDDIR>>/debian/python3-sphinxcontrib-mermaid/usr/lib/python3.11/dist-packages/sphinxcontrib/exceptions.py
>  to exceptions.cpython-311.pyc
> byte-compiling 
> /<<PKGBUILDDIR>>/debian/python3-sphinxcontrib-mermaid/usr/lib/python3.11/dist-packages/sphinxcontrib/autoclassdiag.py
>  to autoclassdiag.cpython-311.pyc
> running install_egg_info
> Copying sphinxcontrib_mermaid.egg-info to 
> /<<PKGBUILDDIR>>/debian/python3-sphinxcontrib-mermaid/usr/lib/python3.11/dist-packages/sphinxcontrib_mermaid-0.9.2.egg-info
> Skipping SOURCES.txt
> Installing 
> /<<PKGBUILDDIR>>/debian/python3-sphinxcontrib-mermaid/usr/lib/python3.11/dist-packages/sphinxcontrib_mermaid-0.9.2-nspkg.pth
> running install_scripts
>    dh_installdocs -O--buildsystem=pybuild
>    dh_sphinxdoc -O--buildsystem=pybuild
> dh_sphinxdoc: warning: Sphinx documentation not found
>    dh_installchangelogs -O--buildsystem=pybuild
>    dh_installman -O--buildsystem=pybuild
> dh_installman: error: Cannot find (any matches for) 
> "build/man/sphinxcontrib-mermaid.3" (tried in ., debian/tmp)
> 
> dh_installman: error: Aborting due to earlier error
> make: *** [debian/rules:12: binary] Error 25


The full build log is available from:
http://qa-logs.debian.net/2023/07/30/exp/sphinxcontrib-mermaid_0.9.2-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.

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