Package: src:m2crypto
Version: 0.38.0-4.1
Severity: important
Tags: sid trixie
User: debian-pyt...@lists.debian.org
Usertags: python3.12

m2crypto ftbfs with Python 3.12:

[...]
   dh_auto_test -O--buildsystem=pybuild
        pybuild --test --test-pytest -i python{version} -p "3.12 3.11"
I: pybuild base:310: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_m2crypto/build; python3.12 -m pytest --ignore tests/test_ssl.py ============================= test session starts ==============================
platform linux -- Python 3.12.0, pytest-7.4.3, pluggy-1.3.0
rootdir: /<<PKGBUILDDIR>>
collected 0 items / 28 errors

==================================== ERRORS ==================================== ___ ERROR collecting .pybuild/cpython3_3.12_m2crypto/build/tests/test_aes.py ___ ImportError while importing test module '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_m2crypto/build/tests/test_aes.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/__init__.py:90: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_aes.py:9: in <module>
    from M2Crypto import m2
M2Crypto/__init__.py:26: in <module>
from M2Crypto import (ASN1, AuthCookie, BIO, BN, DH, DSA, EVP, Engine, Err,
M2Crypto/ASN1.py:15: in <module>
    from M2Crypto import BIO, m2, six
M2Crypto/BIO.py:11: in <module>
    from M2Crypto import m2, six
M2Crypto/m2.py:30: in <module>
    from M2Crypto.m2crypto import *
M2Crypto/m2crypto.py:26: in <module>
    _m2crypto = swig_import_helper()
M2Crypto/m2crypto.py:13: in swig_import_helper
    import imp
E   ModuleNotFoundError: No module named 'imp'
__ ERROR collecting .pybuild/cpython3_3.12_m2crypto/build/tests/test_asn1.py ___ ImportError while importing test module '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_m2crypto/build/tests/test_asn1.py'.
Hint: make sure your test modules/packages have valid Python names.


fixing this, the tests fail later with:

[...]
   dh_auto_test -O--buildsystem=pybuild
        pybuild --test --test-pytest -i python{version} -p "3.12 3.11"
I: pybuild base:310: cd /home/packages/12/m2crypto-0.38.0/.pybuild/cpython3_3.12_m2crypto/build;
 python3.12 -m pytest --ignore tests/test_ssl.py
============================= test session starts ==============================
platform linux -- Python 3.12.0, pytest-7.4.3, pluggy-1.3.0
rootdir: /home/packages/12/m2crypto-0.38.0
plugins: mock-3.11.1
collected 25 items / 25 errors

==================================== ERRORS ==================================== ___ ERROR collecting .pybuild/cpython3_3.12_m2crypto/build/tests/test_aes.py ___ ImportError while importing test module '/home/packages/12/m2crypto-0.38.0/.pybuild/cpython3_3.12_m2crypto/build/tests/test_aes.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/__init__.py:90: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_aes.py:9: in <module>
    from M2Crypto import m2
M2Crypto/__init__.py:26: in <module>
from M2Crypto import (ASN1, AuthCookie, BIO, BN, DH, DSA, EVP, Engine, Err,
M2Crypto/AuthCookie.py:12: in <module>
    from M2Crypto.six.moves.http_cookies import SimpleCookie
E   ModuleNotFoundError: No module named 'M2Crypto.six.moves'
__ ERROR collecting .pybuild/cpython3_3.12_m2crypto/build/tests/test_asn1.py ___ ImportError while importing test module '/home/packages/12/m2crypto-0.38.0/.pybuild/cpython3_3.12_m2crypto/build/tests/test_asn1.py'.
Hint: make sure your test modules/packages have valid Python names.

Reply via email to