Package: src:docstring-parser
Version: 0.16-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/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:docstring-parser, 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_docstring-parser  
* Building wheel...
The "poetry.dev-dependencies" section is deprecated and will be removed in a 
future version. Use "poetry.group.dev.dependencies" instead.
Successfully built docstring_parser-0.16-py3-none-any.whl
I: pybuild plugin_pyproject:155: Unpacking wheel built for python3.14 with 
"installer" module
I: pybuild plugin_pyproject:131: Building wheel for python3.13 with "build" 
module
I: pybuild base:317: python3.13 -m build --skip-dependency-check --no-isolation 
--wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_docstring-parser  
* Building wheel...
The "poetry.dev-dependencies" section is deprecated and will be removed in a 
future version. Use "poetry.group.dev.dependencies" instead.
Successfully built docstring_parser-0.16-py3-none-any.whl
I: pybuild plugin_pyproject:155: Unpacking wheel built for python3.13 with 
"installer" module
   dh_auto_test -O--buildsystem=pybuild
I: pybuild base:317: cd 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_docstring-parser/build; python3.14 -m 
pytest 
============================= test session starts ==============================
platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0
rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_docstring-parser/build
configfile: pyproject.toml
plugins: typeguard-4.4.4
collected 218 items

docstring_parser/tests/test_epydoc.py .................................. [ 15%]
...................                                                      [ 24%]
docstring_parser/tests/test_google.py .................................. [ 39%]
......................                                                   [ 50%]
docstring_parser/tests/test_numpydoc.py ................................ [ 64%]
....................................                                     [ 81%]
docstring_parser/tests/test_parse_from_object.py FFF..                   [ 83%]
docstring_parser/tests/test_parser.py ....                               [ 85%]
docstring_parser/tests/test_rest.py ...............................      [ 99%]
docstring_parser/tests/test_util.py .                                    [100%]

=================================== FAILURES ===================================
____________________ test_from_module_attribute_docstrings _____________________

    def test_from_module_attribute_docstrings() -> None:
        """Test the parse of attribute docstrings from a module."""
        from . import test_parse_from_object  # pylint: disable=C0415,W0406
    
>       docstring = parse_from_object(test_parse_from_object)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

docstring_parser/tests/test_parse_from_object.py:14: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
docstring_parser/parser.py:75: in parse_from_object
    add_attribute_docstrings(obj, docstring)
docstring_parser/attrdoc.py:127: in add_attribute_docstrings
    AttributeDocstrings().get_attr_docs(obj).items()
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
docstring_parser/attrdoc.py:108: in get_attr_docs
    self.visit(tree)
docstring_parser/attrdoc.py:88: in visit
    self.generic_visit(node)
/usr/lib/python3.14/ast.py:514: in generic_visit
    self.visit(item)
docstring_parser/attrdoc.py:79: in visit
    if self.prev_attr and ast_is_literal_str(node):
                          ^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

node = Expr(value=Constant(value='Description for module_attr', kind=None))

    def ast_is_literal_str(node: ast.AST) -> bool:
        """Return True if the given node is a literal string."""
        return (
            isinstance(node, ast.Expr)
>           and isinstance(node.value, (ast.Constant, ast.Str))
                                                      ^^^^^^^
            and isinstance(ast_get_constant_value(node.value), str)
        )
E       AttributeError: module 'ast' has no attribute 'Str'

docstring_parser/attrdoc.py:48: AttributeError
_____________________ test_from_class_attribute_docstrings _____________________

    def test_from_class_attribute_docstrings() -> None:
        """Test the parse of attribute docstrings from a class."""
    
        class StandardCase:
            """Short description
            Long description
            """
    
            attr_one: str
            """Description for attr_one"""
            attr_two: bool = False
            """Description for attr_two"""
    
>       docstring = parse_from_object(StandardCase)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

docstring_parser/tests/test_parse_from_object.py:36: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
docstring_parser/parser.py:75: in parse_from_object
    add_attribute_docstrings(obj, docstring)
docstring_parser/attrdoc.py:127: in add_attribute_docstrings
    AttributeDocstrings().get_attr_docs(obj).items()
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
docstring_parser/attrdoc.py:112: in get_attr_docs
    self.visit(tree.body[0])
docstring_parser/attrdoc.py:88: in visit
    self.generic_visit(node)
/usr/lib/python3.14/ast.py:514: in generic_visit
    self.visit(item)
docstring_parser/attrdoc.py:79: in visit
    if self.prev_attr and ast_is_literal_str(node):
                          ^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

node = Expr(value=Constant(value='Description for attr_one', kind=None))

    def ast_is_literal_str(node: ast.AST) -> bool:
        """Return True if the given node is a literal string."""
        return (
            isinstance(node, ast.Expr)
>           and isinstance(node.value, (ast.Constant, ast.Str))
                                                      ^^^^^^^
            and isinstance(ast_get_constant_value(node.value), str)
        )
E       AttributeError: module 'ast' has no attribute 'Str'

docstring_parser/attrdoc.py:48: AttributeError
______________ test_from_class_attribute_docstrings_without_type _______________

    def test_from_class_attribute_docstrings_without_type() -> None:
        """Test the parse of untyped attribute docstrings."""
    
        class WithoutType:  # pylint: disable=missing-class-docstring
            attr_one = "value"
            """Description for attr_one"""
    
>       docstring = parse_from_object(WithoutType)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

docstring_parser/tests/test_parse_from_object.py:57: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
docstring_parser/parser.py:75: in parse_from_object
    add_attribute_docstrings(obj, docstring)
docstring_parser/attrdoc.py:127: in add_attribute_docstrings
    AttributeDocstrings().get_attr_docs(obj).items()
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
docstring_parser/attrdoc.py:112: in get_attr_docs
    self.visit(tree.body[0])
docstring_parser/attrdoc.py:88: in visit
    self.generic_visit(node)
/usr/lib/python3.14/ast.py:514: in generic_visit
    self.visit(item)
docstring_parser/attrdoc.py:79: in visit
    if self.prev_attr and ast_is_literal_str(node):
                          ^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

node = Expr(value=Constant(value='Description for attr_one', kind=None))

    def ast_is_literal_str(node: ast.AST) -> bool:
        """Return True if the given node is a literal string."""
        return (
            isinstance(node, ast.Expr)
>           and isinstance(node.value, (ast.Constant, ast.Str))
                                                      ^^^^^^^
            and isinstance(ast_get_constant_value(node.value), str)
        )
E       AttributeError: module 'ast' has no attribute 'Str'

docstring_parser/attrdoc.py:48: AttributeError
=========================== short test summary info ============================
FAILED 
docstring_parser/tests/test_parse_from_object.py::test_from_module_attribute_docstrings
FAILED 
docstring_parser/tests/test_parse_from_object.py::test_from_class_attribute_docstrings
FAILED 
docstring_parser/tests/test_parse_from_object.py::test_from_class_attribute_docstrings_without_type
======================== 3 failed, 215 passed in 0.33s =========================
E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_docstring-parser/build; python3.14 -m 
pytest 
I: pybuild base:317: cd 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_docstring-parser/build; python3.13 -m 
pytest 
============================= test session starts ==============================
platform linux -- Python 3.13.11, pytest-9.0.2, pluggy-1.6.0
rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_docstring-parser/build
configfile: pyproject.toml
plugins: typeguard-4.4.4
collected 218 items

docstring_parser/tests/test_epydoc.py .................................. [ 15%]
...................                                                      [ 24%]
docstring_parser/tests/test_google.py .................................. [ 39%]
......................                                                   [ 50%]
docstring_parser/tests/test_numpydoc.py ................................ [ 64%]
....................................                                     [ 81%]
docstring_parser/tests/test_parse_from_object.py .....                   [ 83%]
docstring_parser/tests/test_parser.py ....                               [ 85%]
docstring_parser/tests/test_rest.py ...............................      [ 99%]
docstring_parser/tests/test_util.py .                                    [100%]

=============================== warnings summary ===============================
docstring_parser/tests/test_parse_from_object.py::test_from_module_attribute_docstrings
  
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_docstring-parser/build/docstring_parser/attrdoc.py:48:
 DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; 
use ast.Constant instead
    and isinstance(node.value, (ast.Constant, ast.Str))

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
======================== 218 passed, 1 warning in 0.29s ========================
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.14 
3.13" returned exit code 13
make: *** [debian/rules:6: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

Reply via email to