Package: src:prospector
Version: 1.10.3-2
Severity: serious
Tags: ftbfs forky sid

Dear maintainer:

During a rebuild of all packages in unstable, your package failed to build.

Below you will find how the build ends (probably the most relevant part,
but not necessarily). If required, the full build log is available here:

https://people.debian.org/~sanvila/build-logs/202509/

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 could not 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:prospector, so that this is still
visible in the BTS web page for this package.

Thanks.

--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean --with sphinxdoc --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 sphinxdoc --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:129: Building wheel for python3.13 with "build" 
module
I: pybuild base:311: python3.13 -m build --skip-dependency-check --no-isolation 
--wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_prospector  
* 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 prospector-1.10.3-py3-none-any.whl
I: pybuild plugin_pyproject:144: Unpacking wheel built for python3.13 with 
"installer" module
   dh_auto_test -O--buildsystem=pybuild
I: pybuild base:311: cd 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_prospector/build; python3.13 -m pytest 
-k '    not test_non_subpath and not test_ignored and not test_total_errors and 
not test_module_file_inheritance and not test_module_inheritance and not 
test_filter_messages and not test_filter_messages_negative and not 
test_good_options and not test_absolute_path_is_computed_correctly and not 
test_parallel_execution and not test_pylint_config and not 
test_will_throw_useless_suppression and not 
test_wont_throw_false_positive_relative_beyond_top_level and not 
test_disable_tool and not test_empty_disable_list and not test_empty_profile 
and not test_load_plugins and not test_disable_tool_inheritance and not 
test_precedence and not test_shorthand_inheritance and not 
test_simple_inheritance and not test_strictness_equivalence and not 
test_tool_enabled '
============================= test session starts ==============================
platform linux -- Python 3.13.7, pytest-8.4.1, pluggy-1.6.0
rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_prospector/build
configfile: pyproject.toml
plugins: typeguard-4.4.4
collected 96 items / 24 deselected / 1 skipped / 72 selected

tests/config/test_config.py ...                                          [  4%]
tests/config/test_datatype.py ..............                             [ 23%]
tests/execution/test_execution.py .                                      [ 25%]
tests/finder/test_filefinder.py .......                                  [ 34%]
tests/finder/test_pathutils.py .....                                     [ 41%]
tests/formatters/test_formatter_types.py ..                              [ 44%]
tests/profiles/test_profile.py ..........                                [ 58%]
tests/suppression/test_suppression.py ...                                [ 62%]
tests/test_blender.py .....                                              [ 69%]
tests/test_message.py ........                                           [ 80%]
tests/tools/bandit/test_bandit_tool.py .                                 [ 81%]
tests/tools/mypy/test_mypy_tool.py ......                                [ 90%]
tests/tools/pycodestyle/test_pycodestyle_tool.py ...                     [ 94%]
tests/tools/pylint/test_pylint_tool.py ..                                [ 97%]
tests/tools/pyroma/test_pyroma_tool.py F                                 [ 98%]
tests/tools/vulture/test_vulture_tool.py .                               [100%]

=================================== FAILURES ===================================
_____________________________ test_forced_include ______________________________

    def test_forced_include():
        """
        The built-in default profiles for prospector will ignore `setup.py` by 
default, but this needs
        to be explicitly overridden for pyroma *only*
    
        However, other ignore files should still not be returned. Only a 
setup.py in the root of the
        working directory should be explicitly force-included.
    
        see https://github.com/PyCQA/prospector/pull/106
        """
        test_data = Path(__file__).parent / "testdata"
    
        with patch_cwd(test_data):
            # can't use the patch_execution shortcut due to pyroma playing with 
things itself too
            with patch_cli("prospector", "--profile", 
"test-pyroma-profile.yml"):
                config = ProspectorConfig()
                files = FileFinder(*config.paths, 
exclusion_filters=[config.make_exclusion_filter()])
                # this should not return the root setup.py by default (using 
the strictness profile)
                # but will return others (they might just be called setup.py by 
coincidence)
                assert len(files.python_modules) == 3
                tool = PyromaTool()
                tool.configure(config, files)
    
            # must do this outside of the CLI patch because pyroma does its own 
sys.argv patching...
            messages = tool.run(files)
    
            # this should still find errors in the setup.py, but not any of the 
others
>           assert len(messages) == 10
E           assert 12 == 10
E            +  where 12 = len([pyroma-PYRUNKNOWN, pyroma-PYRUNKNOWN, 
pyroma-PYR05, pyroma-PYRUNKNOWN, pyroma-PYR09, pyroma-PYR12, ...])

tests/tools/pyroma/test_pyroma_tool.py:37: AssertionError
=============================== warnings summary ===============================
../../../../../../usr/lib/python3/dist-packages/bandit/core/utils.py:364: 1 
warning
tests/tools/bandit/test_bandit_tool.py: 21 warnings
  ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant 
instead

prospector/config/configuration.py:2
  pkg_resources is deprecated as an API. See 
https://setuptools.pypa.io/en/latest/pkg_resources.html

../../../../../../usr/lib/python3/dist-packages/pkg_resources/__init__.py:3147
  Deprecated call to `pkg_resources.declare_namespace('logilab')`.
  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

tests/tools/bandit/test_bandit_tool.py: 37 warnings
  Attribute s is deprecated and will be removed in Python 3.14; use value 
instead

tests/tools/bandit/test_bandit_tool.py::TestBanditTool::test_hardcoded_password_string
tests/tools/bandit/test_bandit_tool.py::TestBanditTool::test_hardcoded_password_string
tests/tools/bandit/test_bandit_tool.py::TestBanditTool::test_hardcoded_password_string
tests/tools/bandit/test_bandit_tool.py::TestBanditTool::test_hardcoded_password_string
tests/tools/bandit/test_bandit_tool.py::TestBanditTool::test_hardcoded_password_string
tests/tools/bandit/test_bandit_tool.py::TestBanditTool::test_hardcoded_password_string
tests/tools/bandit/test_bandit_tool.py::TestBanditTool::test_hardcoded_password_string
tests/tools/bandit/test_bandit_tool.py::TestBanditTool::test_hardcoded_password_string
  ast.Num is deprecated and will be removed in Python 3.14; use ast.Constant 
instead

tests/tools/bandit/test_bandit_tool.py::TestBanditTool::test_hardcoded_password_string
tests/tools/bandit/test_bandit_tool.py::TestBanditTool::test_hardcoded_password_string
  ast.Ellipsis is deprecated and will be removed in Python 3.14; use 
ast.Constant instead

tests/tools/bandit/test_bandit_tool.py::TestBanditTool::test_hardcoded_password_string
tests/tools/bandit/test_bandit_tool.py::TestBanditTool::test_hardcoded_password_string
  ast.NameConstant is deprecated and will be removed in Python 3.14; use 
ast.Constant instead

tests/tools/bandit/test_bandit_tool.py::TestBanditTool::test_hardcoded_password_string
tests/tools/bandit/test_bandit_tool.py::TestBanditTool::test_hardcoded_password_string
  ast.Bytes is deprecated and will be removed in Python 3.14; use ast.Constant 
instead

tests/tools/pycodestyle/test_pycodestyle_tool.py::TestPycodestyleTool::test_find_pep8_section_in_config
  [pep8] section is deprecated. Use [pycodestyle].

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED tests/tools/pyroma/test_pyroma_tool.py::test_forced_include - assert 1...
===== 1 failed, 71 passed, 1 skipped, 24 deselected, 76 warnings in 1.41s ======
E: pybuild pybuild:389: test: plugin pyproject failed with:  
[too-long-redacted] nce and not test_tool_enabled '
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.13 
returned exit code 13
make: *** [debian/rules:36: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

Reply via email to