Package: src:sphinx-autodoc-typehints Version: 3.2.0-2 Severity: serious Tags: ftbfs forky sid
Dear maintainer: During a rebuild of all packages in unstable, this package failed to build. Below you will find the last part of the build log (probably the most relevant part, but not necessarily). If required, the full build log is available here: https://people.debian.org/~sanvila/build-logs/202512/ About the archive rebuild: The build was made on virtual machines from AWS, using sbuild and a reduced chroot with only build-essential packages. If you cannot reproduce the bug please contact me privately, as I am willing to provide ssh access to a virtual machine where the bug is fully reproducible. If this is really a bug in one of the build-depends, please use reassign and add an affects on src:sphinx-autodoc-typehints, so that this is still visible in the BTS web page for this package. Thanks. -------------------------------------------------------------------------------- [...] debian/rules clean dh clean --with python3 --buildsystem=pybuild dh_auto_clean -O--buildsystem=pybuild dh_autoreconf_clean -O--buildsystem=pybuild dh_clean -O--buildsystem=pybuild 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:131: Building wheel for python3.14 with "build" module I: pybuild base:317: python3.14 -m build --skip-dependency-check --no-isolation --wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_sphinx-autodoc-typehints * Building wheel... Successfully built sphinx_autodoc_typehints-3.2.0-py3-none-any.whl [... snipped ...] ("Union[int | float, str]", ":py:class:`int` | :py:class:`float` | :py:class:`str`"), ("Union[int, float] | str", ":py:class:`int` | :py:class:`float` | :py:class:`str`"), ], ) def test_always_use_bars_union(annotation: str, expected_result: str) -> None: conf = create_autospec(Config, always_use_bars_union=True) result = format_annotation(eval(annotation), conf) # noqa: S307 > assert result == expected_result E AssertionError: assert ':py:data:`~t...y:obj:`None`]' == ':py:class:`i...py:obj:`None`' E E - :py:class:`int` | :py:class:`float` | :py:obj:`None` E + :py:data:`~typing.Union`\ \[:py:class:`int`, :py:class:`float`, :py:obj:`None`] tests/test_sphinx_autodoc_typehints.py:449: AssertionError _ test_always_use_bars_union[Union[int | float, str]-:py:class:`int` | :py:class:`float` | :py:class:`str`] _ annotation = 'Union[int | float, str]' expected_result = ':py:class:`int` | :py:class:`float` | :py:class:`str`' @pytest.mark.parametrize( ("annotation", "expected_result"), [ ("int | float", ":py:class:`int` | :py:class:`float`"), ("int | float | None", ":py:class:`int` | :py:class:`float` | :py:obj:`None`"), ("Union[int, float]", ":py:class:`int` | :py:class:`float`"), ("Union[int, float, None]", ":py:class:`int` | :py:class:`float` | :py:obj:`None`"), ("Optional[int | float]", ":py:class:`int` | :py:class:`float` | :py:obj:`None`"), ("Optional[Union[int, float]]", ":py:class:`int` | :py:class:`float` | :py:obj:`None`"), ("Union[int | float, str]", ":py:class:`int` | :py:class:`float` | :py:class:`str`"), ("Union[int, float] | str", ":py:class:`int` | :py:class:`float` | :py:class:`str`"), ], ) def test_always_use_bars_union(annotation: str, expected_result: str) -> None: conf = create_autospec(Config, always_use_bars_union=True) result = format_annotation(eval(annotation), conf) # noqa: S307 > assert result == expected_result E AssertionError: assert ':py:data:`~t...:class:`str`]' == ':py:class:`i...y:class:`str`' E E - :py:class:`int` | :py:class:`float` | :py:class:`str` E + :py:data:`~typing.Union`\ \[:py:class:`int`, :py:class:`float`, :py:class:`str`] tests/test_sphinx_autodoc_typehints.py:449: AssertionError _ test_always_use_bars_union[Union[int, float] | str-:py:class:`int` | :py:class:`float` | :py:class:`str`] _ annotation = 'Union[int, float] | str' expected_result = ':py:class:`int` | :py:class:`float` | :py:class:`str`' @pytest.mark.parametrize( ("annotation", "expected_result"), [ ("int | float", ":py:class:`int` | :py:class:`float`"), ("int | float | None", ":py:class:`int` | :py:class:`float` | :py:obj:`None`"), ("Union[int, float]", ":py:class:`int` | :py:class:`float`"), ("Union[int, float, None]", ":py:class:`int` | :py:class:`float` | :py:obj:`None`"), ("Optional[int | float]", ":py:class:`int` | :py:class:`float` | :py:obj:`None`"), ("Optional[Union[int, float]]", ":py:class:`int` | :py:class:`float` | :py:obj:`None`"), ("Union[int | float, str]", ":py:class:`int` | :py:class:`float` | :py:class:`str`"), ("Union[int, float] | str", ":py:class:`int` | :py:class:`float` | :py:class:`str`"), ], ) def test_always_use_bars_union(annotation: str, expected_result: str) -> None: conf = create_autospec(Config, always_use_bars_union=True) result = format_annotation(eval(annotation), conf) # noqa: S307 > assert result == expected_result E AssertionError: assert ':py:data:`~t...:class:`str`]' == ':py:class:`i...y:class:`str`' E E - :py:class:`int` | :py:class:`float` | :py:class:`str` E + :py:data:`~typing.Union`\ \[:py:class:`int`, :py:class:`float`, :py:class:`str`] tests/test_sphinx_autodoc_typehints.py:449: AssertionError ____________________ test_sphinx_output_future_annotations _____________________ app = <SphinxTestApp buildername='text'> status = <_io.StringIO object at 0x7f55c25d23b0> @pytest.mark.sphinx("text", testroot="dummy") @patch("sphinx.writers.text.MAXWIDTH", 2000) def test_sphinx_output_future_annotations(app: SphinxTestApp, status: StringIO) -> None: set_python_path() app.config.master_doc = "future_annotations" # create flag app.build() assert "build succeeded" in status.getvalue() # Build succeeded contents = (Path(app.srcdir) / "_build/text/future_annotations.txt").read_text() expected_contents = """\ Dummy Module ************ dummy_module_future_annotations.function_with_py310_annotations(self, x, y, z=None) Method docstring. Parameters: * **x** ("bool" | "None") -- foo * **y** ("int" | "str" | "float") -- bar * **z** ("str" | "None") -- baz Return type: "str" """ expected_contents = dedent(expected_contents) expected_contents = dedent(expected_contents) > assert contents == expected_contents E assert 'Dummy Module... "str"\n' == 'Dummy Module... "str"\n' E E Skipping 155 identical leading characters in diff, use -v to show E - * **x** ("bool" | "None") -- foo E + * **x** ("Optional"["bool"]) -- foo E E - * **y** ("int" | "str" | "float") -- bar E ? ^^ ^^... E E ...Full output truncated (8 lines hidden), use '-vv' to show tests/test_sphinx_autodoc_typehints.py:588: AssertionError --------------------------- Captured stdout teardown --------------------------- # testroot: root # builder: text # srcdir: /tmp/pytest-of-sbuild/pytest-0/dummy # outdir: /tmp/pytest-of-sbuild/pytest-0/dummy/_build/text # status: [01mRunning Sphinx v8.2.3[39;49;00m [01mloading translations [en]... [39;49;00mdone [01mbuilding [mo]: [39;49;00mtargets for 0 po files that are out of date [01mwriting output... [39;49;00m [01mbuilding [text]: [39;49;00mtargets for 6 source files that are out of date [01mupdating environment: [39;49;00m[new config] 6 added, 0 changed, 0 removed [01mreading sources... [39;49;00m[ 17%] [35mfuture_annotations[39;49;00m [01mreading sources... [39;49;00m[ 33%] [35msimple[39;49;00m [01mreading sources... [39;49;00m[ 50%] [35msimple_default_role[39;49;00m [01mreading sources... [39;49;00m[ 67%] [35msimple_no_use_rtype[39;49;00m [01mreading sources... [39;49;00m[ 83%] [35mwithout_complete_typehints[39;49;00m [01mreading sources... [39;49;00m[100%] [35mwrong_module_path[39;49;00m [01mlooking for now-outdated files... [39;49;00mnone found [01mpickling environment... [39;49;00mdone [01mchecking consistency... [39;49;00mdone [01mpreparing documents... [39;49;00mdone [01mcopying assets... [39;49;00m [01mcopying assets: [39;49;00mdone [01mwriting output... [39;49;00m[ 17%] [32mfuture_annotations[39;49;00m [01mwriting output... [39;49;00m[ 33%] [32msimple[39;49;00m [01mwriting output... [39;49;00m[ 50%] [32msimple_default_role[39;49;00m [01mwriting output... [39;49;00m[ 67%] [32msimple_no_use_rtype[39;49;00m [01mwriting output... [39;49;00m[ 83%] [32mwithout_complete_typehints[39;49;00m [01mwriting output... [39;49;00m[100%] [32mwrong_module_path[39;49;00m [01mbuild succeeded.[39;49;00m The text files are in ../../../../../../tmp/pytest-of-sbuild/pytest-0/dummy/_build/text. # warning: ____________________________ test_wrong_module_path ____________________________ app = <SphinxTestApp buildername='text'> status = <_io.StringIO object at 0x7f55c2e780d0> warning = <_io.StringIO object at 0x7f55c2973be0> @pytest.mark.sphinx("text", testroot="dummy") @patch("sphinx.writers.text.MAXWIDTH", 2000) def test_wrong_module_path(app: SphinxTestApp, status: StringIO, warning: StringIO) -> None: set_python_path() app.config.master_doc = "wrong_module_path" # create flag app.config.default_role = "literal" app.config.nitpicky = True app.config.nitpick_ignore = {("py:data", "typing.Optional")} def fixup_module_name(mod: str) -> str: if not mod.startswith("wrong_module_path"): return mod return "export_module" + mod.removeprefix("wrong_module_path") app.config.suppress_warnings = ["config.cache"] app.config.typehints_fixup_module_name = fixup_module_name app.build() assert "build succeeded" in status.getvalue() # Build succeeded > assert not warning.getvalue().strip() E AssertionError: assert not '\x1b[91m<unknown>:1: WARNING: py:data reference target not found: typing.Union [ref.data]\x1b[39;49;00m' E + where '\x1b[91m<unknown>:1: WARNING: py:data reference target not found: typing.Union [ref.data]\x1b[39;49;00m' = <built-in method strip of str object at 0x7f55c3319bb0>() E + where <built-in method strip of str object at 0x7f55c3319bb0> = '\x1b[91m<unknown>:1: WARNING: py:data reference target not found: typing.Union [ref.data]\x1b[39;49;00m\n'.strip E + where '\x1b[91m<unknown>:1: WARNING: py:data reference target not found: typing.Union [ref.data]\x1b[39;49;00m\n' = <built-in method getvalue of _io.StringIO object at 0x7f55c2973be0>() E + where <built-in method getvalue of _io.StringIO object at 0x7f55c2973be0> = <_io.StringIO object at 0x7f55c2973be0>.getvalue tests/test_sphinx_autodoc_typehints.py:1074: AssertionError --------------------------- Captured stdout teardown --------------------------- # testroot: root # builder: text # srcdir: /tmp/pytest-of-sbuild/pytest-0/dummy # outdir: /tmp/pytest-of-sbuild/pytest-0/dummy/_build/text # status: [01mRunning Sphinx v8.2.3[39;49;00m [01mloading translations [en]... [39;49;00mdone [01mbuilding [mo]: [39;49;00mtargets for 0 po files that are out of date [01mwriting output... [39;49;00m [01mbuilding [text]: [39;49;00mtargets for 6 source files that are out of date [01mupdating environment: [39;49;00m[new config] 6 added, 0 changed, 0 removed [01mreading sources... [39;49;00m[ 17%] [35mfuture_annotations[39;49;00m [01mreading sources... [39;49;00m[ 33%] [35msimple[39;49;00m [01mreading sources... [39;49;00m[ 50%] [35msimple_default_role[39;49;00m [01mreading sources... [39;49;00m[ 67%] [35msimple_no_use_rtype[39;49;00m [01mreading sources... [39;49;00m[ 83%] [35mwithout_complete_typehints[39;49;00m [01mreading sources... [39;49;00m[100%] [35mwrong_module_path[39;49;00m [01mlooking for now-outdated files... [39;49;00mnone found [01mpickling environment... [39;49;00mdone [01mchecking consistency... [39;49;00mdone [01mpreparing documents... [39;49;00mdone [01mcopying assets... [39;49;00m [01mcopying assets: [39;49;00mdone [01mwriting output... [39;49;00m[ 17%] [32mfuture_annotations[39;49;00m [01mwriting output... [39;49;00m[ 33%] [32msimple[39;49;00m [01mwriting output... [39;49;00m[ 50%] [32msimple_default_role[39;49;00m [01mwriting output... [39;49;00m[ 67%] [32msimple_no_use_rtype[39;49;00m [01mwriting output... [39;49;00m[ 83%] [32mwithout_complete_typehints[39;49;00m [01mwriting output... [39;49;00m[100%] [32mwrong_module_path[39;49;00m [01mbuild succeeded, 1 warning.[39;49;00m The text files are in ../../../../../../tmp/pytest-of-sbuild/pytest-0/dummy/_build/text. # warning: [91m<unknown>:1: WARNING: py:data reference target not found: typing.Union [ref.data][39;49;00m =============================== warnings summary =============================== tests/test_integration.py: 40 warnings /usr/lib/python3/dist-packages/sphinx/directives/patches.py:216: PendingDeprecationWarning: The auxiliary function roles.set_classes() is obsoleted by roles.normalize_options() and will be removed in Docutils 2.0 set_classes(self.options) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED tests/test_sphinx_autodoc_typehints.py::test_format_annotation[Union] FAILED tests/test_sphinx_autodoc_typehints.py::test_always_use_bars_union[int | float-:py:class:`int` | :py:class:`float`] FAILED tests/test_sphinx_autodoc_typehints.py::test_always_use_bars_union[int | float | None-:py:class:`int` | :py:class:`float` | :py:obj:`None`] FAILED tests/test_sphinx_autodoc_typehints.py::test_always_use_bars_union[Union[int, float]-:py:class:`int` | :py:class:`float`] FAILED tests/test_sphinx_autodoc_typehints.py::test_always_use_bars_union[Union[int, float, None]-:py:class:`int` | :py:class:`float` | :py:obj:`None`] FAILED tests/test_sphinx_autodoc_typehints.py::test_always_use_bars_union[Optional[int | float]-:py:class:`int` | :py:class:`float` | :py:obj:`None`] FAILED tests/test_sphinx_autodoc_typehints.py::test_always_use_bars_union[Optional[Union[int, float]]-:py:class:`int` | :py:class:`float` | :py:obj:`None`] FAILED tests/test_sphinx_autodoc_typehints.py::test_always_use_bars_union[Union[int | float, str]-:py:class:`int` | :py:class:`float` | :py:class:`str`] FAILED tests/test_sphinx_autodoc_typehints.py::test_always_use_bars_union[Union[int, float] | str-:py:class:`int` | :py:class:`float` | :py:class:`str`] FAILED tests/test_sphinx_autodoc_typehints.py::test_sphinx_output_future_annotations FAILED tests/test_sphinx_autodoc_typehints.py::test_wrong_module_path - Asser... ================= 11 failed, 328 passed, 40 warnings in 8.78s ================== E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_sphinx-autodoc-typehints/build; python3.14 -m pytest tests I: pybuild base:317: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_sphinx-autodoc-typehints/build; python3.13 -m pytest tests ============================= test session starts ============================== platform linux -- Python 3.13.11, pytest-9.0.2, pluggy-1.6.0 rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_sphinx-autodoc-typehints/build configfile: pyproject.toml plugins: cov-5.0.0, typeguard-4.4.4 collected 339 items tests/test_integration.py .............................................. [ 13%] ........................................................................ [ 34%] .......................................................... [ 51%] tests/test_integration_autodoc_type_aliases.py ... [ 52%] tests/test_integration_issue_384.py . [ 53%] tests/test_sphinx_autodoc_typehints.py ................................. [ 62%] ........................................................................ [ 84%] ..................................................... [ 99%] tests/test_version.py . [100%] =============================== warnings summary =============================== tests/test_integration.py: 40 warnings /usr/lib/python3/dist-packages/sphinx/directives/patches.py:216: PendingDeprecationWarning: The auxiliary function roles.set_classes() is obsoleted by roles.normalize_options() and will be removed in Docutils 2.0 set_classes(self.options) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ======================= 339 passed, 40 warnings in 8.45s ======================= dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.14 3.13" returned exit code 13 make: *** [debian/rules:7: binary] Error 25 dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2 --------------------------------------------------------------------------------

