Source: autoflake
Version: 2.2.1-1
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: [email protected]
Usertags: ftbfs-20231212 ftbfs-trixie
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> dh_auto_build --buildsystem=pybuild
> I: pybuild plugin_pyproject:110: Building wheel for python3.12 with "build"
> module
> I: pybuild base:310: python3.12 -m build --skip-dependency-check
> --no-isolation --wheel --outdir
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_autoflake
> * Building wheel...
> Successfully built autoflake-2.2.1-py3-none-any.whl
> I: pybuild plugin_pyproject:122: Unpacking wheel built for python3.12 with
> "installer" module
> I: pybuild plugin_pyproject:110: Building wheel for python3.11 with "build"
> module
> I: pybuild base:310: python3.11 -m build --skip-dependency-check
> --no-isolation --wheel --outdir
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_autoflake
> * Building wheel...
> Successfully built autoflake-2.2.1-py3-none-any.whl
> I: pybuild plugin_pyproject:122: Unpacking wheel built for python3.11 with
> "installer" module
> python3 /<<PKGBUILDDIR>>/debian/build_manpage.py > debian/autoflake.1
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
> dh_auto_test -O--buildsystem=pybuild
> I: pybuild base:310: cd
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_autoflake/build; python3.12 -m pytest
> ============================= test session starts
> ==============================
> platform linux -- Python 3.12.1, pytest-7.4.3, pluggy-1.3.0
> rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_autoflake/build
> collected 166 items
>
> test_autoflake.py ...................................................... [
> 32%]
> ......................F................................................. [
> 75%]
> ........................................
> [100%]
>
> =================================== FAILURES
> ===================================
> ______________ UnitTests.test_fix_code_with_from_and_depth_module
> ______________
>
> self = <test_autoflake.UnitTests
> testMethod=test_fix_code_with_from_and_depth_module>
>
> def test_fix_code_with_from_and_depth_module(self) -> None:
> > self.assertEqual(
> """\
> from distutils.version import StrictVersion
> StrictVersion('1.0.0')
> """,
> autoflake.fix_code(
> """\
> from distutils.version import LooseVersion, StrictVersion
> StrictVersion('1.0.0')
> """,
> ),
> )
> E AssertionError: "from[17 chars]n import
> StrictVersion\nStrictVersion('1.0.0')\n" != "from[17 chars]n import
> LooseVersion, StrictVersion\nStrictVersion('1.0.0')\n"
> E - from distutils.version import StrictVersion
> E + from distutils.version import LooseVersion, StrictVersion
> E ? ++++++++++++++
> E StrictVersion('1.0.0')
>
> test_autoflake.py:921: AssertionError
> =========================== short test summary info
> ============================
> FAILED test_autoflake.py::UnitTests::test_fix_code_with_from_and_depth_module
> ======================== 1 failed, 165 passed in 1.81s
> =========================
> E: pybuild pybuild:395: test: plugin pyproject failed with: exit code=1: cd
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_autoflake/build; python3.12 -m pytest
> I: pybuild base:310: cd
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_autoflake/build; python3.11 -m pytest
> ============================= test session starts
> ==============================
> platform linux -- Python 3.11.7, pytest-7.4.3, pluggy-1.3.0
> rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_autoflake/build
> collected 166 items
>
> test_autoflake.py ...................................................... [
> 32%]
> ........................................................................ [
> 75%]
> ........................................
> [100%]
>
> ============================= 166 passed in 1.73s
> ==============================
> dh_auto_test: error: pybuild --test -i python{version} -p "3.12 3.11"
> returned exit code 13
The full build log is available from:
http://qa-logs.debian.net/2023/12/12/autoflake_2.2.1-1_unstable.log
All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20231212;[email protected]
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20231212&[email protected]&allbugs=1&cseverity=1&ctags=1&caffected=1#results
A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!
If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects
If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.