--- Begin Message ---
Package: src:sphinx-autodoc-typehints
Version: 3.8.0-1
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/202606/
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:142: Building wheel for python3.14 with "build"
module
I: pybuild base:385: 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.8.0-py3-none-any.whl
I: pybuild plugin_pyproject:168: Unpacking wheel built for python3.14 with
"installer" module
I: pybuild plugin_pyproject:142: Building wheel for python3.13 with "build"
module
I: pybuild base:385: python3.13 -m build --skip-dependency-check --no-isolation
--wheel --outdir
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_sphinx-autodoc-typehints
* Building wheel...
Successfully built sphinx_autodoc_typehints-3.8.0-py3-none-any.whl
I: pybuild plugin_pyproject:168: Unpacking wheel built for python3.13 with
"installer" module
dh_auto_test -O--buildsystem=pybuild
I: pybuild base:385: cd
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_sphinx-autodoc-typehints/build;
python3.14 -m pytest tests
============================= test session starts ==============================
platform linux -- Python 3.14.6, pytest-9.0.3, pluggy-1.6.0
rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_sphinx-autodoc-typehints/build
configfile: pyproject.toml
plugins: cov-5.0.0, typeguard-4.4.4
collected 502 items / 2 skipped
tests/test_annotations.py ....................................ssssssssss [ 9%]
ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss.. [ 23%]
.................................. [ 30%]
tests/test_attributes_patch.py ..... [ 31%]
tests/test_formats_numpydoc.py ............................. [ 37%]
tests/test_formats_sphinx.py ....... [ 38%]
tests/test_generator_yields.py .. [ 38%]
tests/test_guarded_import.py . [ 39%]
tests/test_init.py ......... [ 40%]
tests/test_integration.py .............................................. [ 50%]
........................................................................ [ 64%]
.............................................................. [ 76%]
tests/test_integration_autodoc_type_aliases.py ... [ 77%]
tests/test_integration_issue_384.py . [ 77%]
tests/test_integration_issue_572.py ..s [ 78%]
tests/test_integration_issue_599.py .... [ 78%]
tests/test_method_lookup.py . [ 79%]
tests/test_pep695.py ... [ 79%]
tests/test_resolver/test_attrs.py ....... [ 81%]
tests/test_resolver/test_stubs.py .............................. [ 87%]
tests/test_resolver/test_type_comments.py ................... [ 90%]
tests/test_resolver/test_type_hints.py ........... [ 93%]
tests/test_resolver/test_util.py .... [ 93%]
tests/test_safe_parse.py . [ 94%]
tests/test_sphinx_autodoc_typehints.py ............................. [ 99%]
tests/test_version.py . [100%]
=============================== warnings summary ===============================
tests/test_generator_yields.py: 24 warnings
tests/test_guarded_import.py: 2 warnings
tests/test_integration.py: 464 warnings
tests/test_integration_autodoc_type_aliases.py: 6 warnings
tests/test_integration_issue_384.py: 2 warnings
tests/test_integration_issue_572.py: 4 warnings
tests/test_integration_issue_599.py: 6 warnings
tests/test_method_lookup.py: 6 warnings
tests/test_pep695.py: 10 warnings
tests/test_resolver/test_attrs.py: 10 warnings
tests/test_resolver/test_stubs.py: 6 warnings
tests/test_safe_parse.py: 2 warnings
tests/test_sphinx_autodoc_typehints.py: 382 warnings
/usr/lib/python3/dist-packages/sphinx/ext/napoleon/docstring.py:361:
RemovedInSphinx11Warning: The mapping interface for autodoc options objects is
deprecated, and will be removed in Sphinx 11. Use attribute access instead.
if options:
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
================ 421 passed, 83 skipped, 924 warnings in 9.71s =================
I: pybuild base:385: cd
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_sphinx-autodoc-typehints/build;
python3.13 -m pytest tests
============================= test session starts ==============================
platform linux -- Python 3.13.14, pytest-9.0.3, 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 502 items / 2 skipped
tests/test_annotations.py .......................................F...F.. [ 9%]
........................................................................ [ 23%]
.................................. [ 30%]
tests/test_attributes_patch.py ..... [ 31%]
tests/test_formats_numpydoc.py ............................. [ 37%]
tests/test_formats_sphinx.py ....... [ 38%]
tests/test_generator_yields.py .. [ 38%]
tests/test_guarded_import.py . [ 39%]
tests/test_init.py ......... [ 40%]
tests/test_integration.py .............................................. [ 50%]
........................................................................ [ 64%]
.............................................................. [ 76%]
tests/test_integration_autodoc_type_aliases.py ... [ 77%]
tests/test_integration_issue_384.py . [ 77%]
tests/test_integration_issue_572.py ss. [ 78%]
tests/test_integration_issue_599.py .... [ 78%]
tests/test_method_lookup.py . [ 79%]
tests/test_pep695.py ... [ 79%]
tests/test_resolver/test_attrs.py ....... [ 81%]
tests/test_resolver/test_stubs.py .............................. [ 87%]
tests/test_resolver/test_type_comments.py ................... [ 90%]
tests/test_resolver/test_type_hints.py ........... [ 93%]
tests/test_resolver/test_util.py .... [ 93%]
tests/test_safe_parse.py . [ 94%]
tests/test_sphinx_autodoc_typehints.py ............................. [ 99%]
tests/test_version.py . [100%]
=================================== FAILURES ===================================
_____________________ test_format_annotation[EllipsisType] _____________________
inv = Inventory(project='Python', version='3.13',
source_type=<SourceTypes.FnameZlib: 'fname_zlib'>)
annotation = <class 'ellipsis'>
expected_result = ':py:data:`~types.EllipsisType`'
@pytest.mark.parametrize(("annotation", "expected_result"), _CASES)
def test_format_annotation(inv: Inventory, annotation: Any,
expected_result: str) -> None:
conf = create_autospec(Config, _annotation_globals=globals(),
always_use_bars_union=False)
result = format_annotation(annotation, conf)
assert result == expected_result
if re.match(r"^:py:data:`~typing\.Union`\\\[.*``None``.*]",
expected_result): # pragma: <3.14 cover
expected_result_not_simplified = expected_result.replace(",
``None``", "")
expected_result_not_simplified += ":py:data:`~typing.Optional`\\
\\["
expected_result_not_simplified += "]"
conf = create_autospec(
Config,
simplify_optional_unions=False,
_annotation_globals=globals(),
always_use_bars_union=False,
)
assert format_annotation(annotation, conf) ==
expected_result_not_simplified
if "typing" in expected_result_not_simplified:
expected_result_not_simplified =
expected_result_not_simplified.replace("~typing", "typing")
conf = create_autospec(
Config,
typehints_fully_qualified=True,
simplify_optional_unions=False,
_annotation_globals=globals(),
)
assert format_annotation(annotation, conf) ==
expected_result_not_simplified
if "typing" in expected_result or __name__ in expected_result:
expected_result = expected_result.replace("~typing", "typing")
expected_result = expected_result.replace("~collections.abc",
"collections.abc")
expected_result = expected_result.replace("~numpy", "numpy")
expected_result = expected_result.replace("~" + __name__, __name__)
conf = create_autospec(
Config,
typehints_fully_qualified=True,
_annotation_globals=globals(),
always_use_bars_union=False,
)
assert format_annotation(annotation, conf) == expected_result
if (
result.count(":py:") == 1
and ("typing" in result or "types" in result)
and (match :=
re.match(r"^:py:(?P<role>class|data|func):`~(?P<name>[^`]+)`", result))
):
name = match.group("name")
expected_role = next((o.role for o in inv.objects if o.name ==
name), None)
if expected_role and expected_role == "function": # pragma: no
cover
expected_role = "func"
> assert match.group("role") == expected_role
E AssertionError: assert 'data' == 'class'
E
E - class
E + data
tests/test_annotations.py:439: AssertionError
__________________ test_format_annotation[NotImplementedType] __________________
inv = Inventory(project='Python', version='3.13',
source_type=<SourceTypes.FnameZlib: 'fname_zlib'>)
annotation = <class 'NotImplementedType'>
expected_result = ':py:data:`~types.NotImplementedType`'
@pytest.mark.parametrize(("annotation", "expected_result"), _CASES)
def test_format_annotation(inv: Inventory, annotation: Any,
expected_result: str) -> None:
conf = create_autospec(Config, _annotation_globals=globals(),
always_use_bars_union=False)
result = format_annotation(annotation, conf)
assert result == expected_result
if re.match(r"^:py:data:`~typing\.Union`\\\[.*``None``.*]",
expected_result): # pragma: <3.14 cover
expected_result_not_simplified = expected_result.replace(",
``None``", "")
expected_result_not_simplified += ":py:data:`~typing.Optional`\\
\\["
expected_result_not_simplified += "]"
conf = create_autospec(
Config,
simplify_optional_unions=False,
_annotation_globals=globals(),
always_use_bars_union=False,
)
assert format_annotation(annotation, conf) ==
expected_result_not_simplified
if "typing" in expected_result_not_simplified:
expected_result_not_simplified =
expected_result_not_simplified.replace("~typing", "typing")
conf = create_autospec(
Config,
typehints_fully_qualified=True,
simplify_optional_unions=False,
_annotation_globals=globals(),
)
assert format_annotation(annotation, conf) ==
expected_result_not_simplified
if "typing" in expected_result or __name__ in expected_result:
expected_result = expected_result.replace("~typing", "typing")
expected_result = expected_result.replace("~collections.abc",
"collections.abc")
expected_result = expected_result.replace("~numpy", "numpy")
expected_result = expected_result.replace("~" + __name__, __name__)
conf = create_autospec(
Config,
typehints_fully_qualified=True,
_annotation_globals=globals(),
always_use_bars_union=False,
)
assert format_annotation(annotation, conf) == expected_result
if (
result.count(":py:") == 1
and ("typing" in result or "types" in result)
and (match :=
re.match(r"^:py:(?P<role>class|data|func):`~(?P<name>[^`]+)`", result))
):
name = match.group("name")
expected_role = next((o.role for o in inv.objects if o.name ==
name), None)
if expected_role and expected_role == "function": # pragma: no
cover
expected_role = "func"
> assert match.group("role") == expected_role
E AssertionError: assert 'data' == 'class'
E
E - class
E + data
tests/test_annotations.py:439: AssertionError
=============================== warnings summary ===============================
tests/test_generator_yields.py: 24 warnings
tests/test_guarded_import.py: 2 warnings
tests/test_integration.py: 464 warnings
tests/test_integration_autodoc_type_aliases.py: 6 warnings
tests/test_integration_issue_384.py: 2 warnings
tests/test_integration_issue_599.py: 6 warnings
tests/test_method_lookup.py: 6 warnings
tests/test_pep695.py: 10 warnings
tests/test_resolver/test_attrs.py: 10 warnings
tests/test_resolver/test_stubs.py: 6 warnings
tests/test_safe_parse.py: 2 warnings
tests/test_sphinx_autodoc_typehints.py: 382 warnings
/usr/lib/python3/dist-packages/sphinx/ext/napoleon/docstring.py:361:
RemovedInSphinx11Warning: The mapping interface for autodoc options objects is
deprecated, and will be removed in Sphinx 11. Use attribute access instead.
if options:
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED tests/test_annotations.py::test_format_annotation[EllipsisType] - Asse...
FAILED tests/test_annotations.py::test_format_annotation[NotImplementedType]
=========== 2 failed, 498 passed, 4 skipped, 920 warnings in 10.51s ============
E: pybuild pybuild:485: test: plugin pyproject failed with: exit code=1: cd
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_sphinx-autodoc-typehints/build;
python3.13 -m pytest tests
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.14
3.13" --parallel=2 returned exit code 13
make: *** [debian/rules:7: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit
status 2
--------------------------------------------------------------------------------
--- End Message ---