Source: python-mongomock Version: 4.1.2-1 Severity: serious -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512
Dear maintainer, your package implicitly depends on python3-pkg-resources for its autopkgtest, which used to be provided through python3-pytest. However, pytest has dropped that dependency, breaking your autopkgtest and possibly your package. Note that pkg_resources is deprecated in favor of importlib.resources [1], which is part of the Python Standard Library and has better performance. Cheers Timo [1] https://docs.python.org/3/library/importlib.resources.html - --- Relevant excerpt from https://ci.debian.net/data/autopkgtest/testing/amd64/p/python-mongomock/35451515/log.gz 24s ==================================== ERRORS ==================================== 24s _______________ ERROR collecting tests/test__bulk_operations.py ________________ 24s ImportError while importing test module '/tmp/autopkgtest-lxc.2jeup6d8/downtmp/build.egq/src/tests/test__bulk_operations.py'. 24s Hint: make sure your test modules/packages have valid Python names. 24s Traceback: 24s /usr/lib/python3.11/importlib/__init__.py:126: in import_module 24s return _bootstrap._gcd_import(name[level:], package, level) 24s tests/test__bulk_operations.py:3: in <module> 24s import mongomock 24s mongomock/__init__.py:79: in <module> 24s from mongomock.__version__ import __version__ 24s mongomock/__version__.py:1: in <module> 24s import pkg_resources 24s E ModuleNotFoundError: No module named 'pkg_resources' 24s __________________ ERROR collecting tests/test__client_api.py __________________ 24s ImportError while importing test module '/tmp/autopkgtest-lxc.2jeup6d8/downtmp/build.egq/src/tests/test__client_api.py'. 24s Hint: make sure your test modules/packages have valid Python names. 24s Traceback: 24s /usr/lib/python3.11/importlib/__init__.py:126: in import_module 24s return _bootstrap._gcd_import(name[level:], package, level) 24s tests/test__client_api.py:16: in <module> 24s import mongomock 24s mongomock/__init__.py:79: in <module> 24s from mongomock.__version__ import __version__ 24s mongomock/__version__.py:1: in <module> 24s import pkg_resources 24s E ModuleNotFoundError: No module named 'pkg_resources' 24s ________________ ERROR collecting tests/test__collection_api.py ________________ 24s ImportError while importing test module '/tmp/autopkgtest-lxc.2jeup6d8/downtmp/build.egq/src/tests/test__collection_api.py'. 24s Hint: make sure your test modules/packages have valid Python names. 24s Traceback: 24s /usr/lib/python3.11/importlib/__init__.py:126: in import_module 24s return _bootstrap._gcd_import(name[level:], package, level) 24s tests/test__collection_api.py:15: in <module> 24s import mongomock 24s mongomock/__init__.py:79: in <module> 24s from mongomock.__version__ import __version__ 24s mongomock/__version__.py:1: in <module> 24s import pkg_resources 24s E ModuleNotFoundError: No module named 'pkg_resources' 24s _________________ ERROR collecting tests/test__database_api.py _________________ 24s ImportError while importing test module '/tmp/autopkgtest-lxc.2jeup6d8/downtmp/build.egq/src/tests/test__database_api.py'. 24s Hint: make sure your test modules/packages have valid Python names. 24s Traceback: 24s /usr/lib/python3.11/importlib/__init__.py:126: in import_module 24s return _bootstrap._gcd_import(name[level:], package, level) 24s tests/test__database_api.py:7: in <module> 24s import mongomock 24s mongomock/__init__.py:79: in <module> 24s from mongomock.__version__ import __version__ 24s mongomock/__version__.py:1: in <module> 24s import pkg_resources 24s E ModuleNotFoundError: No module named 'pkg_resources' 24s ____________________ ERROR collecting tests/test__gridfs.py ____________________ 24s ImportError while importing test module '/tmp/autopkgtest-lxc.2jeup6d8/downtmp/build.egq/src/tests/test__gridfs.py'. 24s Hint: make sure your test modules/packages have valid Python names. 24s Traceback: 24s /usr/lib/python3.11/importlib/__init__.py:126: in import_module 24s return _bootstrap._gcd_import(name[level:], package, level) 24s tests/test__gridfs.py:6: in <module> 24s import mongomock 24s mongomock/__init__.py:79: in <module> 24s from mongomock.__version__ import __version__ 24s mongomock/__version__.py:1: in <module> 24s import pkg_resources 24s E ModuleNotFoundError: No module named 'pkg_resources' 24s __________________ ERROR collecting tests/test__mongomock.py ___________________ 24s ImportError while importing test module '/tmp/autopkgtest-lxc.2jeup6d8/downtmp/build.egq/src/tests/test__mongomock.py'. 24s Hint: make sure your test modules/packages have valid Python names. 24s Traceback: 24s /usr/lib/python3.11/importlib/__init__.py:126: in import_module 24s return _bootstrap._gcd_import(name[level:], package, level) 24s tests/test__mongomock.py:13: in <module> 24s import mongomock 24s mongomock/__init__.py:79: in <module> 24s from mongomock.__version__ import __version__ 24s mongomock/__version__.py:1: in <module> 24s import pkg_resources 24s E ModuleNotFoundError: No module named 'pkg_resources' 24s _______________ ERROR collecting tests/test__not_implemented.py ________________ 24s ImportError while importing test module '/tmp/autopkgtest-lxc.2jeup6d8/downtmp/build.egq/src/tests/test__not_implemented.py'. 24s Hint: make sure your test modules/packages have valid Python names. 24s Traceback: 24s /usr/lib/python3.11/importlib/__init__.py:126: in import_module 24s return _bootstrap._gcd_import(name[level:], package, level) 24s tests/test__not_implemented.py:3: in <module> 24s import mongomock 24s mongomock/__init__.py:79: in <module> 24s from mongomock.__version__ import __version__ 24s mongomock/__version__.py:1: in <module> 24s import pkg_resources 24s E ModuleNotFoundError: No module named 'pkg_resources' 24s ____________________ ERROR collecting tests/test__patch.py _____________________ 24s ImportError while importing test module '/tmp/autopkgtest-lxc.2jeup6d8/downtmp/build.egq/src/tests/test__patch.py'. 24s Hint: make sure your test modules/packages have valid Python names. 24s Traceback: 24s /usr/lib/python3.11/importlib/__init__.py:126: in import_module 24s return _bootstrap._gcd_import(name[level:], package, level) 24s tests/test__patch.py:4: in <module> 24s import mongomock 24s mongomock/__init__.py:79: in <module> 24s from mongomock.__version__ import __version__ 24s mongomock/__version__.py:1: in <module> 24s import pkg_resources 24s E ModuleNotFoundError: No module named 'pkg_resources' 24s ____________________ ERROR collecting tests/test__thread.py ____________________ 24s ImportError while importing test module '/tmp/autopkgtest-lxc.2jeup6d8/downtmp/build.egq/src/tests/test__thread.py'. 24s Hint: make sure your test modules/packages have valid Python names. 24s Traceback: 24s /usr/lib/python3.11/importlib/__init__.py:126: in import_module 24s return _bootstrap._gcd_import(name[level:], package, level) 24s tests/test__thread.py:3: in <module> 24s from mongomock.store import RWLock 24s mongomock/__init__.py:79: in <module> 24s from mongomock.__version__ import __version__ 24s mongomock/__version__.py:1: in <module> 24s import pkg_resources 24s E ModuleNotFoundError: No module named 'pkg_resources' -----BEGIN PGP SIGNATURE----- iQGzBAEBCgAdFiEEJvtDgpxjkjCIVtam+C8H+466LVkFAmSoUHkACgkQ+C8H+466 LVkSGAv8DG+TI8PlUa/eIFN0P9h9+stndWiivs3hhaulEcLokq+zusaaDB7x7cIx B4xG4owursF7IsBvGoaB9zEnE/PEInRoHAC86zZCvigOx+pd8/8KR3O/pl6ZMNOf 5Ef6+9bUHiHEEM8LQu3vpl5WOgq134nYd25z1/Sf1GKbn23A05ApmUt8Rx6xJNu+ LbJRUsHYAZaJXiowN+J02DkzzmdrjiIpH5+5tbe4oD3eP4uNlGFE2PcCwJ8b7EQk BV8VXnKwHwY9acwAYbs8XddOxJ2xpTRGz2JtW6fr6o82xXlgJtvNAj7TYbILOJDL 5aJjo+eKa70w4JxuSDqsoMCSgAr9rVZ0OlqyaB4zu+iTdisQF2QNF4xNmd8vN3M4 Q4oAiz4l0HYVrT8asX7VevKR9F7bA0m/m1VrcpQlqiJeQ3uveS+7b0QRuGV5Wf89 k+2496FpxYjUpBmg0QE4gdasWiO29H4jr+SE1cyEsBKYJBT8gCCa6sf37Nabl3c5 aPsM3f+S =6ef9 -----END PGP SIGNATURE-----