Source: python-wadllib Version: 1.3.6-5 Severity: normal User: [email protected] Usertags: python3.13 Forwarded: https://bugs.launchpad.net/wadllib/+bug/2069619
This package failed build from source when test-built against a version of python3-defaults that includes 3.13 as a supported version. To reproduce this issue, build against python3-defaults (python3-all-dev etc.) from Debian experimental. What's new in Python 3.13: https://docs.python.org/3.13/whatsnew/3.13.html Log snippet: dh_auto_test -O--buildsystem=pybuild I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_wadllib/build; python3.13 -m pytest --doctest-glob '*.rst' ============================= test session starts ============================== platform linux -- Python 3.13.0rc2, pytest-8.3.3, pluggy-1.5.0 rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_wadllib/build configfile: pytest.ini plugins: typeguard-4.3.0 collected 1 item index.rst F [100%] =================================== FAILURES =================================== _____________________________ [doctest] index.rst ______________________________ 563 ... 'wadllib.tests.data', 'multipart-binary-wadl.xml') 564 >>> cleanups.append(binary_stream) 565 >>> binary_wadl = Application( 566 ... "http://www.example.com/", binary_stream) 567 >>> service_root = binary_wadl.get_resource_by_path('') 568 569 Define a helper that processes the representation the same way 570 zope.publisher would. 571 572 >>> import cgi UNEXPECTED EXCEPTION: ModuleNotFoundError("No module named 'cgi'") Traceback (most recent call last): File "/usr/lib/python3.13/doctest.py", line 1395, in __run exec(compile(example.source, filename, "single", ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ compileflags, True), test.globs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<doctest index.rst[140]>", line 1, in <module> ModuleNotFoundError: No module named 'cgi' /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_wadllib/build/index.rst:572: UnexpectedException =============================== warnings summary =============================== ../../../../../../usr/lib/python3.13/importlib/metadata/__init__.py:486 /usr/lib/python3.13/importlib/metadata/__init__.py:486: DeprecationWarning: Implicit None on return values is deprecated and will raise KeyErrors. return self.metadata['Version'] wadllib/tests/test_docs.py:31 /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_wadllib/build/wadllib/tests/test_docs.py:31: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html import pkg_resources -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED index.rst::index.rst ======================== 1 failed, 2 warnings in 0.11s ========================= E: pybuild pybuild:389: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_wadllib/build; python3.13 -m pytest --doctest-glob '*.rst' I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_wadllib/build; python3.12 -m pytest --doctest-glob '*.rst' ============================= test session starts ============================== platform linux -- Python 3.12.6, pytest-8.3.3, pluggy-1.5.0 rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_wadllib/build configfile: pytest.ini plugins: typeguard-4.3.0 collected 1 item index.rst . [100%] =============================== warnings summary =============================== ../../../../../../usr/lib/python3.12/importlib/metadata/__init__.py:467 /usr/lib/python3.12/importlib/metadata/__init__.py:467: DeprecationWarning: Implicit None on return values is deprecated and will raise KeyErrors. return self.metadata['Version'] wadllib/tests/test_docs.py:31 /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_wadllib/build/wadllib/tests/test_docs.py:31: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html import pkg_resources index.rst::index.rst <doctest index.rst[140]>:1: DeprecationWarning: 'cgi' is deprecated and slated for removal in Python 3.13 -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ======================== 1 passed, 3 warnings in 0.11s ========================= dh_auto_test: error: pybuild --test -i python{version} -p "3.13 3.12" returned exit code 13 make: *** [debian/rules:8: binary] Error 25 dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2 -------------------------------------------------------------------------------- Build finished at 2024-09-19T09:31:44Z If required, the full build log is available here (for the next 30 days): https://debusine.debian.net/artifact/791071/ This bug has been filed at "normal" severity, as we haven't started the transition to add 3.13 as a supported version, yet. This will be raised to RC as soon as that happens, hopefully well before trixie. Thanks, Stefano

