Source: python-nudatus
Version: 0.0.5-2
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
>       pybuild --build -i python{version} -p "3.12 3.11"
> D: pybuild pybuild:605: version: 6.20231204
> D: pybuild pybuild:606: ['/usr/bin/pybuild', '--build', '-i', 
> 'python{version}', '-p', '3.12 3.11']
> D: pybuild pybuild:39: cfg: Namespace(verbose=True, quiet=False, 
> really_quiet=False, detect_only=False, clean_only=False, 
> configure_only=False, build_only=True, install_only=False, test_only=False, 
> autopkgtest_only=False, list_systems=False, print_args=None, 
> before_clean=None, clean_args=None, after_clean=None, before_configure=None, 
> configure_args=None, after_configure=None, before_build=None, 
> build_args=None, after_build=None, before_install=None, install_args=None, 
> after_install=None, before_test=None, test_args=None, after_test=None, 
> test_nose=False, test_nose2=False, test_pytest=False, test_tox=False, 
> test_custom=False, dir='/<<PKGBUILDDIR>>', destdir='debian/tmp', 
> ext_destdir=None, ext_pattern='\\.so(\\.[^/]*)?$', ext_sub_pattern=None, 
> ext_sub_repl=None, install_dir=None, name='nudatus', system=None, 
> versions=['3.12', '3.11'], interpreter=['python{version}'], disable=None, 
> custom_tests=False)
> D: pybuild __init__:37: cannot initialize 'cmake' plugin: Missing command 
> 'cmake'
> D: pybuild __init__:37: cannot initialize 'meson' plugin: Missing command 
> 'meson'
> D: pybuild tools:232: invoking: /usr/bin/dpkg-architecture
> D: pybuild debhelper:183: source=python-nudatus, binary 
> packages=['python3-nudatus']
> D: pybuild pybuild:129: Plugin autopkgtest: certainty 0
> D: pybuild pybuild:129: Plugin custom: certainty 0
> D: pybuild pybuild:129: Plugin distutils: certainty 50
> D: pybuild pybuild:129: Plugin flit: certainty 0
> D: pybuild pybuild:129: Plugin pyproject: certainty 0
> D: pybuild pybuild:155: detected build system: distutils (certainty: 50%)
> I: pybuild base:310: /usr/bin/python3.12 setup.py build 
> D: pybuild tools:232: invoking: /usr/bin/python3.12 setup.py build 
> running build
> running build_py
> copying nudatus.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_nudatus/build
> I: pybuild base:310: /usr/bin/python3 setup.py build 
> D: pybuild tools:232: invoking: /usr/bin/python3 setup.py build 
> running build
> running build_py
> copying nudatus.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_nudatus/build
> # build custom manpage
> DEB_VERSION_UPSTREAM 0.0.5
> sed -e "s/__VERSION__/0.0.5/g" \
>                       < debian/nudatus.1.md.in > debian/nudatus.1.md
> pandoc debian/nudatus.1.md -s -f markdown -t man -o debian/nudatus.1
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
>    dh_auto_test -O--buildsystem=pybuild
>       pybuild --test --test-pytest -i python{version} -p "3.12 3.11"
> D: pybuild pybuild:605: version: 6.20231204
> D: pybuild pybuild:606: ['/usr/bin/pybuild', '--test', '--test-pytest', '-i', 
> 'python{version}', '-p', '3.12 3.11']
> D: pybuild pybuild:39: cfg: Namespace(verbose=True, quiet=False, 
> really_quiet=False, detect_only=False, clean_only=False, 
> configure_only=False, build_only=False, install_only=False, test_only=True, 
> autopkgtest_only=False, list_systems=False, print_args=None, 
> before_clean=None, clean_args=None, after_clean=None, before_configure=None, 
> configure_args=None, after_configure=None, before_build=None, 
> build_args=None, after_build=None, before_install=None, install_args=None, 
> after_install=None, before_test=None, test_args=None, after_test=None, 
> test_nose=False, test_nose2=False, test_pytest=True, test_tox=False, 
> test_custom=False, dir='/<<PKGBUILDDIR>>', destdir='debian/tmp', 
> ext_destdir=None, ext_pattern='\\.so(\\.[^/]*)?$', ext_sub_pattern=None, 
> ext_sub_repl=None, install_dir=None, name='nudatus', system=None, 
> versions=['3.12', '3.11'], interpreter=['python{version}'], disable=None, 
> custom_tests=True)
> D: pybuild __init__:37: cannot initialize 'cmake' plugin: Missing command 
> 'cmake'
> D: pybuild __init__:37: cannot initialize 'meson' plugin: Missing command 
> 'meson'
> D: pybuild tools:232: invoking: /usr/bin/dpkg-architecture
> D: pybuild debhelper:183: source=python-nudatus, binary 
> packages=['python3-nudatus']
> D: pybuild pybuild:129: Plugin autopkgtest: certainty 0
> D: pybuild pybuild:129: Plugin custom: certainty 0
> D: pybuild pybuild:129: Plugin distutils: certainty 50
> D: pybuild pybuild:129: Plugin flit: certainty 0
> D: pybuild pybuild:129: Plugin pyproject: certainty 0
> D: pybuild pybuild:155: detected build system: distutils (certainty: 50%)
> D: pybuild base:72: Copying /<<PKGBUILDDIR>>/tests to 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_nudatus/build/tests for tests
> I: pybuild base:310: cd 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_nudatus/build; python3.12 -m pytest 
> tests
> D: pybuild tools:232: invoking: cd 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_nudatus/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 7 items
> 
> tests/test_nudatus.py ..F...F                                            
> [100%]
> 
> =================================== FAILURES 
> ===================================
> _________________________ test_mangle_with_bad_syntax 
> __________________________
> 
>     def test_mangle_with_bad_syntax():
>         """
>         Check that mangle throws an
>         exception for a badly formatted script
>         """
>         script = ""
>         with open("tests/bigscript_bad.py") as f:
>             script = f.read()
>         assert len(script) > 0
> >       with pytest.raises(tokenize.TokenError):
> E       Failed: DID NOT RAISE <class 'tokenize.TokenError'>
> 
> tests/test_nudatus.py:47: Failed
> __________________________ test_main_with_bad_script 
> ___________________________
> 
> capfd = <_pytest.capture.CaptureFixture object at 0x7f21cde82ff0>
> 
>     def test_main_with_bad_script(capfd):
>         with pytest.raises(SystemExit) as ex:
>             with mock.patch("sys.argv", ["nudatus", 
> "tests/bigscript_bad.py"]):
>                 nudatus.main()
> >           assert ex.value.code == 1
> 
> tests/test_nudatus.py:98: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> self = <ExceptionInfo for raises contextmanager>
> 
>     @property
>     def value(self) -> E:
>         """The exception value."""
> >       assert (
>             self._excinfo is not None
>         ), ".value can only be used after the context manager exits"
> E       AssertionError: .value can only be used after the context manager 
> exits
> 
> /usr/lib/python3/dist-packages/_pytest/_code/code.py:558: AssertionError
> ----------------------------- Captured stdout call 
> -----------------------------
> from microbit import *
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> )
> def show_num(num):
>     if 1 + 1 == 2 and 2 + 2 == 4 or 3 + 3 == 6 \
>        and 3 - 3 == 0 and 'this is nonsense' == 'this is nonsense':
>         print('Hello')
>         text = """
>               This should survive
>               """
>     i = Image()
>     i.fill(0)
>     if num & 0b00001000:
>         i.set_pixel(0, 2, 9)
>     if num & 0b00000100:
>         i.set_pixel(1, 2, 9)
>     if num & 0b00000010:
>         i.set_pixel(2, 2, 9)
>     if num & 0b00000001:
>         i.set_pixel(3, 2, 9)
>     display.show(i)
> 
> show_num(12)
> =========================== short test summary info 
> ============================
> FAILED tests/test_nudatus.py::test_mangle_with_bad_syntax - Failed: DID NOT 
> R...
> FAILED tests/test_nudatus.py::test_main_with_bad_script - AssertionError: 
> .va...
> ========================= 2 failed, 5 passed in 0.10s 
> ==========================
> E: pybuild pybuild:395: test: plugin distutils failed with: exit code=1: cd 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_nudatus/build; python3.12 -m pytest 
> tests
> Traceback (most recent call last):
>   File "/usr/bin/pybuild", line 393, in main
>     run(func, i, version, c)
>   File "/usr/bin/pybuild", line 331, in run
>     result = func(context, args)
>              ^^^^^^^^^^^^^^^^^^^
>   File "/usr/share/dh-python/dhpython/build/base.py", line 363, in 
> wrapped_func
>     raise Exception(msg)
> Exception: exit code=1: cd 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_nudatus/build; python3.12 -m pytest 
> tests
> D: pybuild base:72: Copying /<<PKGBUILDDIR>>/tests to 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_nudatus/build/tests for tests
> I: pybuild base:310: cd 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_nudatus/build; python3.11 -m pytest 
> tests
> D: pybuild tools:232: invoking: cd 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_nudatus/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 7 items
> 
> tests/test_nudatus.py .......                                            
> [100%]
> 
> ============================== 7 passed in 0.11s 
> ===============================
>       rm -fr -- /tmp/dh-xdg-rundir-cz2ye3DW
> 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/python-nudatus_0.0.5-2_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.

Reply via email to