Source: smbus2 Version: 0.4.2-1 Severity: serious Justification: FTBFS Tags: trixie sid ftbfs User: lu...@debian.org Usertags: ftbfs-20231212 ftbfs-trixie
Hi, During a rebuild of all packages in sid, your package failed to build on amd64. Relevant part (hopefully): > debian/rules build > dh build --with python3 --buildsystem=pybuild --with sphinxdoc > dh_update_autotools_config -O--buildsystem=pybuild > dh_autoreconf -O--buildsystem=pybuild > dh_auto_configure -O--buildsystem=pybuild > I: pybuild base:310: python3.12 setup.py config > running config > I: pybuild base:310: python3.11 setup.py config > running config > dh_auto_build -O--buildsystem=pybuild > I: pybuild base:310: /usr/bin/python3.12 setup.py build > running build > running build_py > creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_smbus2/build/smbus2 > copying smbus2/__init__.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_smbus2/build/smbus2 > copying smbus2/smbus2.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_smbus2/build/smbus2 > copying smbus2/py.typed -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_smbus2/build/smbus2 > copying smbus2/smbus2.pyi -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_smbus2/build/smbus2 > I: pybuild base:310: /usr/bin/python3 setup.py build > running build > running build_py > creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_smbus2/build/smbus2 > copying smbus2/__init__.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_smbus2/build/smbus2 > copying smbus2/smbus2.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_smbus2/build/smbus2 > copying smbus2/py.typed -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_smbus2/build/smbus2 > copying smbus2/smbus2.pyi -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_smbus2/build/smbus2 > dh_auto_test -O--buildsystem=pybuild > I: pybuild base:310: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_smbus2/build; > python3.12 -m pytest tests > ============================= test session starts > ============================== > platform linux -- Python 3.12.1, pytest-7.4.3, pluggy-1.3.0 > rootdir: /<<PKGBUILDDIR>> > collected 14 items > > tests/test_datatypes.py ..... [ > 35%] > tests/test_smbus2.py ...F..... > [100%] > > =================================== FAILURES > =================================== > ______________________________ TestSMBus.test_pec > ______________________________ > > self = <test_smbus2.TestSMBus testMethod=test_pec> > > def test_pec(self): > def set_pec(bus, enable=True): > bus.pec = enable > > # Enabling PEC should fail (no mocked PEC support) > bus = SMBus(1) > self.assertRaises(IOError, set_pec, bus, True) > self.assertRaises(IOError, set_pec, bus, 1) > > self.assertEquals(bus.pec, 0) > E AttributeError: 'TestSMBus' object has no attribute 'assertEquals'. > Did you mean: 'assertEqual'? > > tests/test_smbus2.py:188: AttributeError > ----------------------------- Captured stdout call > ----------------------------- > Mocking open: /dev/i2c-1 > Mocking ioctl > =========================== short test summary info > ============================ > FAILED tests/test_smbus2.py::TestSMBus::test_pec - AttributeError: > 'TestSMBus... > ========================= 1 failed, 13 passed in 0.07s > ========================= > E: pybuild pybuild:395: test: plugin distutils failed with: exit code=1: cd > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_smbus2/build; python3.12 -m pytest > tests > I: pybuild base:310: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_smbus2/build; > python3.11 -m pytest tests > ============================= test session starts > ============================== > platform linux -- Python 3.11.7, pytest-7.4.3, pluggy-1.3.0 > rootdir: /<<PKGBUILDDIR>> > collected 14 items > > tests/test_datatypes.py ..... [ > 35%] > tests/test_smbus2.py ......... > [100%] > > =============================== warnings summary > =============================== > .pybuild/cpython3_3.11_smbus2/build/tests/test_smbus2.py::TestSMBus::test_pec > > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_smbus2/build/tests/test_smbus2.py:188: > DeprecationWarning: Please use assertEqual instead. > self.assertEquals(bus.pec, 0) > > .pybuild/cpython3_3.11_smbus2/build/tests/test_smbus2.py::TestSMBus::test_pec > > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_smbus2/build/tests/test_smbus2.py:192: > DeprecationWarning: Please use assertEqual instead. > self.assertEquals(bus.pec, 1) > > .pybuild/cpython3_3.11_smbus2/build/tests/test_smbus2.py::TestSMBus::test_pec > > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_smbus2/build/tests/test_smbus2.py:194: > DeprecationWarning: Please use assertEqual instead. > self.assertEquals(bus.pec, 0) > > -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html > ======================== 14 passed, 3 warnings in 0.05s > ======================== > dh_auto_test: error: pybuild --test --test-pytest -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/smbus2_0.4.2-1_unstable.log All bugs filed during this archive rebuild are listed at: https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20231212;users=lu...@debian.org or: https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20231212&fusertaguser=lu...@debian.org&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.