Source: sphinx-panels Version: 0.6.0-2 Severity: important Tags: ftbfs User: python-modules-t...@lists.alioth.debian.org Usertags: sphinx7.1
Hi, sphinx-panels 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_build -i > I: pybuild base:240: /usr/bin/python3 setup.py build > running build > running build_py > creating > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sphinx-panels/build/sphinx_panels > copying sphinx_panels/utils.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sphinx-panels/build/sphinx_panels > copying sphinx_panels/dropdown.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sphinx-panels/build/sphinx_panels > copying sphinx_panels/icons.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sphinx-panels/build/sphinx_panels > copying sphinx_panels/__init__.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sphinx-panels/build/sphinx_panels > copying sphinx_panels/panels.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sphinx-panels/build/sphinx_panels > copying sphinx_panels/tabs.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sphinx-panels/build/sphinx_panels > copying sphinx_panels/button.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sphinx-panels/build/sphinx_panels > creating > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sphinx-panels/build/sphinx_panels/_css > copying sphinx_panels/_css/__init__.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sphinx-panels/build/sphinx_panels/_css > running egg_info > creating sphinx_panels.egg-info > writing sphinx_panels.egg-info/PKG-INFO > writing dependency_links to sphinx_panels.egg-info/dependency_links.txt > writing requirements to sphinx_panels.egg-info/requires.txt > writing top-level names to sphinx_panels.egg-info/top_level.txt > writing manifest file 'sphinx_panels.egg-info/SOURCES.txt' > reading manifest file 'sphinx_panels.egg-info/SOURCES.txt' > reading manifest template 'MANIFEST.in' > warning: no previously-included files found matching 'docs' > warning: no previously-included files matching '*' found under directory > 'docs' > warning: no previously-included files found matching 'tests' > warning: no previously-included files found matching '.circleci' > warning: no previously-included files matching '*' found under directory > '.circleci' > warning: no previously-included files matching '__pycache__' found under > directory '**' > warning: no previously-included files matching '*' found under directory > '**/__pycache__' > warning: no previously-included files found matching '.pre-commit-config.yaml' > warning: no previously-included files found matching '.readthedocs.yml' > warning: no previously-included files found matching '.flake8' > warning: no previously-included files found matching '.scss-lint.yml' > warning: no previously-included files found matching 'tox.ini' > warning: no previously-included files found matching > 'git_rebase_theme_branches.sh' > adding license file 'LICENSE' > writing manifest file 'sphinx_panels.egg-info/SOURCES.txt' > /usr/lib/python3/dist-packages/setuptools/command/build_py.py:201: _Warning: > Package 'sphinx_panels.data' is absent from the `packages` configuration. > !! > > > ******************************************************************************** > ############################ > # Package would be ignored # > ############################ > Python recognizes 'sphinx_panels.data' as an importable package[^1], > but it is absent from setuptools' `packages` configuration. > > This leads to an ambiguous overall configuration. If you want to > distribute this > package, please make sure that 'sphinx_panels.data' is explicitly > added > to the `packages` configuration field. > > Alternatively, you can also rely on setuptools' discovery methods > (for example by using `find_namespace_packages(...)`/`find_namespace:` > instead of `find_packages(...)`/`find:`). > > You can read more about "package discovery" on setuptools > documentation page: > > - > https://setuptools.pypa.io/en/latest/userguide/package_discovery.html > > If you don't want 'sphinx_panels.data' to be distributed and are > already explicitly excluding 'sphinx_panels.data' via > `find_namespace_packages(...)/find_namespace` or > `find_packages(...)/find`, > you can try to use `exclude_package_data`, or > `include-package-data=False` in > combination with a more fine grained `package-data` configuration. > > You can read more about "package data files" on setuptools > documentation page: > > - https://setuptools.pypa.io/en/latest/userguide/datafiles.html > > > [^1]: For Python, any directory (with suitable naming) can be > imported, > even if it does not contain any `.py` files. > On the other hand, currently there is no concept of package data > directory, all directories are treated like packages. > > ******************************************************************************** > > !! > check.warn(importable) > /usr/lib/python3/dist-packages/setuptools/command/build_py.py:201: _Warning: > Package 'sphinx_panels.scss.bootstrap' is absent from the `packages` > configuration. > !! > > > ******************************************************************************** > ############################ > # Package would be ignored # > ############################ > Python recognizes 'sphinx_panels.scss.bootstrap' as an importable > package[^1], > but it is absent from setuptools' `packages` configuration. > > This leads to an ambiguous overall configuration. If you want to > distribute this > package, please make sure that 'sphinx_panels.scss.bootstrap' is > explicitly added > to the `packages` configuration field. > > Alternatively, you can also rely on setuptools' discovery methods > (for example by using `find_namespace_packages(...)`/`find_namespace:` > instead of `find_packages(...)`/`find:`). > > You can read more about "package discovery" on setuptools > documentation page: > > - > https://setuptools.pypa.io/en/latest/userguide/package_discovery.html > > If you don't want 'sphinx_panels.scss.bootstrap' to be distributed > and are > already explicitly excluding 'sphinx_panels.scss.bootstrap' via > `find_namespace_packages(...)/find_namespace` or > `find_packages(...)/find`, > you can try to use `exclude_package_data`, or > `include-package-data=False` in > combination with a more fine grained `package-data` configuration. > > You can read more about "package data files" on setuptools > documentation page: > > - https://setuptools.pypa.io/en/latest/userguide/datafiles.html > > > [^1]: For Python, any directory (with suitable naming) can be > imported, > even if it does not contain any `.py` files. > On the other hand, currently there is no concept of package data > directory, all directories are treated like packages. > > ******************************************************************************** > > !! > check.warn(importable) > /usr/lib/python3/dist-packages/setuptools/command/build_py.py:201: _Warning: > Package 'sphinx_panels.scss.panels' is absent from the `packages` > configuration. > !! > > > ******************************************************************************** > ############################ > # Package would be ignored # > ############################ > Python recognizes 'sphinx_panels.scss.panels' as an importable > package[^1], > but it is absent from setuptools' `packages` configuration. > > This leads to an ambiguous overall configuration. If you want to > distribute this > package, please make sure that 'sphinx_panels.scss.panels' is > explicitly added > to the `packages` configuration field. > > Alternatively, you can also rely on setuptools' discovery methods > (for example by using `find_namespace_packages(...)`/`find_namespace:` > instead of `find_packages(...)`/`find:`). > > You can read more about "package discovery" on setuptools > documentation page: > > - > https://setuptools.pypa.io/en/latest/userguide/package_discovery.html > > If you don't want 'sphinx_panels.scss.panels' to be distributed and > are > already explicitly excluding 'sphinx_panels.scss.panels' via > `find_namespace_packages(...)/find_namespace` or > `find_packages(...)/find`, > you can try to use `exclude_package_data`, or > `include-package-data=False` in > combination with a more fine grained `package-data` configuration. > > You can read more about "package data files" on setuptools > documentation page: > > - https://setuptools.pypa.io/en/latest/userguide/datafiles.html > > > [^1]: For Python, any directory (with suitable naming) can be > imported, > even if it does not contain any `.py` files. > On the other hand, currently there is no concept of package data > directory, all directories are treated like packages. > > ******************************************************************************** > > !! > check.warn(importable) > creating > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sphinx-panels/build/sphinx_panels/data > copying sphinx_panels/data/LICENSE -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sphinx-panels/build/sphinx_panels/data > copying sphinx_panels/data/opticons.json -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sphinx-panels/build/sphinx_panels/data > creating > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sphinx-panels/build/sphinx_panels/scss > creating > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sphinx-panels/build/sphinx_panels/scss/bootstrap > copying sphinx_panels/scss/bootstrap/_badge.scss -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sphinx-panels/build/sphinx_panels/scss/bootstrap > copying sphinx_panels/scss/bootstrap/_borders.scss -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sphinx-panels/build/sphinx_panels/scss/bootstrap > copying sphinx_panels/scss/bootstrap/_buttons.scss -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sphinx-panels/build/sphinx_panels/scss/bootstrap > copying sphinx_panels/scss/bootstrap/_cards.scss -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sphinx-panels/build/sphinx_panels/scss/bootstrap > copying sphinx_panels/scss/bootstrap/_colors.scss -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sphinx-panels/build/sphinx_panels/scss/bootstrap > copying sphinx_panels/scss/bootstrap/_grids.scss -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sphinx-panels/build/sphinx_panels/scss/bootstrap > copying sphinx_panels/scss/bootstrap/_overrides.scss -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sphinx-panels/build/sphinx_panels/scss/bootstrap > copying sphinx_panels/scss/bootstrap/index.scss -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sphinx-panels/build/sphinx_panels/scss/bootstrap > creating > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sphinx-panels/build/sphinx_panels/scss/panels > copying sphinx_panels/scss/panels/_dropdown.scss -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sphinx-panels/build/sphinx_panels/scss/panels > copying sphinx_panels/scss/panels/_icons.scss -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sphinx-panels/build/sphinx_panels/scss/panels > copying sphinx_panels/scss/panels/_tabs.scss -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sphinx-panels/build/sphinx_panels/scss/panels > copying sphinx_panels/scss/panels/index.scss -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sphinx-panels/build/sphinx_panels/scss/panels > copying > sphinx_panels/_css/panels-bootstrap.5fd3999ee7762ccc51105388f4a9d115.css -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sphinx-panels/build/sphinx_panels/_css > copying sphinx_panels/_css/panels-main.c949a650a448cc0ae9fd3441c0e17fb0.css > -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sphinx-panels/build/sphinx_panels/_css > cd docs && \ > PYTHONPATH=/<<PKGBUILDDIR>> http_proxy='http://127.0.0.1:9/' > https_proxy='https://127.0.0.1:9/' \ > sphinx-build -N -E -T -b html . /<<PKGBUILDDIR>>/.pybuild/docs/html/ > Running Sphinx v7.1.1 > WARNING: Invalid configuration value found: 'language = None'. Update your > configuration to a valid language code. Falling back to 'en' (English). > making output directory... done > building [mo]: targets for 0 po files that are out of date > writing output... > building [html]: targets for 1 source files that are out of date > updating environment: [new config] 1 added, 0 changed, 0 removed > [2Kreading sources... [100%] index > > looking for now-outdated files... none found > pickling environment... done > checking consistency... done > preparing documents... done > copying assets... copying static files... done > copying extra files... done > done > [2Kwriting output... [100%] index > > generating indices... genindex done > writing additional pages... search done > [2Kcopying images... [ 33%] _static/ebp-logo.png > [2Kcopying images... [ 67%] _static/footer-banner.jpg > [2Kcopying images... [100%] _static/sphinx-logo.png > > dumping search index in English (code: en)... done > dumping object inventory... done > build succeeded, 1 warning. > > The HTML pages are in ../.pybuild/docs/html. > rm -rf /<<PKGBUILDDIR>>/.pybuild/docs/html/.doctrees > make[1]: Leaving directory '/<<PKGBUILDDIR>>' > dh_auto_test -O--buildsystem=pybuild > I: pybuild base:240: cd > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sphinx-panels/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>> > plugins: regressions-2.4.1+ds, datadir-1.4.1+ds > collected 21 items > > tests/test_icons.py .. [ > 9%] > tests/test_panels.py ....... [ > 42%] > tests/test_sphinx.py FF [ > 52%] > tests/test_utils.py .......... > [100%] > > =================================== FAILURES > =================================== > __________________________ test_sources[tabbed_basic] > __________________________ > > sphinx_app_factory = <function sphinx_app_factory.<locals>._func at > 0x7fa974f216c0> > file_regression = <pytest_regressions.file_regression.FileRegressionFixture > object at 0x7fa974d72bd0> > folder = 'tabbed_basic' > > @pytest.mark.parametrize("folder", ["tabbed_basic", "dropdown_basic"]) > def test_sources(sphinx_app_factory, file_regression, folder): > app = sphinx_app_factory(folder) > app.build() > assert app._warning.getvalue() == "" > doctree = app.env.get_and_resolve_doctree("index", app.builder) > doctree["source"] = "source" > > file_regression.check( > doctree.pformat(), > encoding="utf8", > extension=".xml", > ) > E AssertionError: FILES DIFFER: > E > /tmp/pytest-of-user42/pytest-9/test_sources_tabbed_basic_0/test_sphinx/test_sources_tabbed_basic_.xml > E > /tmp/pytest-of-user42/pytest-9/test_sources_tabbed_basic_0/test_sphinx/test_sources_tabbed_basic_.obtained.xml > E HTML DIFF: > /tmp/pytest-of-user42/pytest-9/test_sources_tabbed_basic_0/test_sphinx/test_sources_tabbed_basic_.obtained.diff.html > E --- > E +++ > E @@ -1,4 +1,4 @@ > E -<document source="source"> > E +<document source="source" translation_progress="{'total': 0, > 'translated': 0}"> > E <section ids="title" names="title"> > E <title> > E Title > > tests/test_sphinx.py:31: AssertionError > _________________________ test_sources[dropdown_basic] > _________________________ > > sphinx_app_factory = <function sphinx_app_factory.<locals>._func at > 0x7fa974f21800> > file_regression = <pytest_regressions.file_regression.FileRegressionFixture > object at 0x7fa974393910> > folder = 'dropdown_basic' > > @pytest.mark.parametrize("folder", ["tabbed_basic", "dropdown_basic"]) > def test_sources(sphinx_app_factory, file_regression, folder): > app = sphinx_app_factory(folder) > app.build() > assert app._warning.getvalue() == "" > doctree = app.env.get_and_resolve_doctree("index", app.builder) > doctree["source"] = "source" > > file_regression.check( > doctree.pformat(), > encoding="utf8", > extension=".xml", > ) > E AssertionError: FILES DIFFER: > E > /tmp/pytest-of-user42/pytest-9/test_sources_dropdown_basic_0/test_sphinx/test_sources_dropdown_basic_.xml > E > /tmp/pytest-of-user42/pytest-9/test_sources_dropdown_basic_0/test_sphinx/test_sources_dropdown_basic_.obtained.xml > E HTML DIFF: > /tmp/pytest-of-user42/pytest-9/test_sources_dropdown_basic_0/test_sphinx/test_sources_dropdown_basic_.obtained.diff.html > E --- > E +++ > E @@ -1,4 +1,4 @@ > E -<document source="source"> > E +<document source="source" translation_progress="{'total': 0, > 'translated': 0}"> > E <section ids="title" names="title"> > E <title> > E Title > > tests/test_sphinx.py:31: 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 > > .pybuild/cpython3_3.11_sphinx-panels/build/tests/test_sphinx.py::test_sources[tabbed_basic] > .pybuild/cpython3_3.11_sphinx-panels/build/tests/test_sphinx.py::test_sources[dropdown_basic] > > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sphinx-panels/build/sphinx_panels/__init__.py:62: > DeprecationWarning: contents is deprecated. Use files() instead. Refer to > https://importlib-resources.readthedocs.io/en/latest/using.html#migrating-from-legacy > for migration advice. > css_files = [r for r in resources.contents(css_module) if > r.endswith(".css")] > > .pybuild/cpython3_3.11_sphinx-panels/build/tests/test_sphinx.py::test_sources[tabbed_basic] > .pybuild/cpython3_3.11_sphinx-panels/build/tests/test_sphinx.py::test_sources[tabbed_basic] > .pybuild/cpython3_3.11_sphinx-panels/build/tests/test_sphinx.py::test_sources[dropdown_basic] > .pybuild/cpython3_3.11_sphinx-panels/build/tests/test_sphinx.py::test_sources[dropdown_basic] > > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sphinx-panels/build/sphinx_panels/__init__.py:75: > DeprecationWarning: read_text is deprecated. Use files() instead. Refer to > https://importlib-resources.readthedocs.io/en/latest/using.html#migrating-from-legacy > for migration advice. > content = resources.read_text(css_module, filename) > > .pybuild/cpython3_3.11_sphinx-panels/build/tests/test_sphinx.py::test_sources[tabbed_basic] > .pybuild/cpython3_3.11_sphinx-panels/build/tests/test_sphinx.py::test_sources[tabbed_basic] > .pybuild/cpython3_3.11_sphinx-panels/build/tests/test_sphinx.py::test_sources[dropdown_basic] > .pybuild/cpython3_3.11_sphinx-panels/build/tests/test_sphinx.py::test_sources[dropdown_basic] > /usr/lib/python3.11/importlib/resources/_legacy.py:80: DeprecationWarning: > open_text is deprecated. Use files() instead. Refer to > https://importlib-resources.readthedocs.io/en/latest/using.html#migrating-from-legacy > for migration advice. > with open_text(package, resource, encoding, errors) as fp: > > .pybuild/cpython3_3.11_sphinx-panels/build/tests/test_sphinx.py::test_sources[tabbed_basic] > .pybuild/cpython3_3.11_sphinx-panels/build/tests/test_sphinx.py::test_sources[tabbed_basic] > .pybuild/cpython3_3.11_sphinx-panels/build/tests/test_sphinx.py::test_sources[dropdown_basic] > .pybuild/cpython3_3.11_sphinx-panels/build/tests/test_sphinx.py::test_sources[dropdown_basic] > > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sphinx-panels/build/sphinx_panels/dropdown.py:118: > PendingDeprecationWarning: nodes.Node.traverse() is obsoleted by > Node.findall(). > for node in self.document.traverse(matcher): > > .pybuild/cpython3_3.11_sphinx-panels/build/tests/test_sphinx.py::test_sources[tabbed_basic] > .pybuild/cpython3_3.11_sphinx-panels/build/tests/test_sphinx.py::test_sources[tabbed_basic] > .pybuild/cpython3_3.11_sphinx-panels/build/tests/test_sphinx.py::test_sources[dropdown_basic] > .pybuild/cpython3_3.11_sphinx-panels/build/tests/test_sphinx.py::test_sources[dropdown_basic] > > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sphinx-panels/build/sphinx_panels/tabs.py:130: > PendingDeprecationWarning: nodes.Node.traverse() is obsoleted by > Node.findall(). > for node in self.document.traverse(matcher): # type: nodes.container > > .pybuild/cpython3_3.11_sphinx-panels/build/tests/test_sphinx.py::test_sources[dropdown_basic] > .pybuild/cpython3_3.11_sphinx-panels/build/tests/test_sphinx.py::test_sources[dropdown_basic] > .pybuild/cpython3_3.11_sphinx-panels/build/tests/test_sphinx.py::test_sources[dropdown_basic] > .pybuild/cpython3_3.11_sphinx-panels/build/tests/test_sphinx.py::test_sources[dropdown_basic] > > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sphinx-panels/build/sphinx_panels/dropdown.py:174: > PendingDeprecationWarning: nodes.Node.traverse() is obsoleted by > Node.findall(). > for para in body_node.traverse(nodes.paragraph): > > -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html > =========================== short test summary info > ============================ > FAILED tests/test_sphinx.py::test_sources[tabbed_basic] - AssertionError: > FIL... > FAILED tests/test_sphinx.py::test_sources[dropdown_basic] - AssertionError: > F... > ================== 2 failed, 19 passed, 23 warnings in 0.76s > =================== > E: pybuild pybuild:388: test: plugin distutils failed with: exit code=1: cd > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_sphinx-panels/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/sphinx-panels_0.6.0-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 sph...@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.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;users=python-modules-t...@lists.alioth.debian.org or: https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=sphinx7.1&fusertaguser=python-modules-t...@lists.alioth.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