Skip to content

intelmqctl/debian: fix Debian 13 test/distribution discovery - #2721

Open
sebix wants to merge 1 commit into
certtools:developfrom
sebix:fix/py-3.13
Open

sebix wants to merge 1 commit into
certtools:developfrom
sebix:fix/py-3.13

Conversation

@sebix

@sebix sebix commented Sep 13, 2026

Copy link
Copy Markdown
Member

pkg_resources is deprecated and fails to find the installed distribution in Debian 13's pybuild build environment, breaking both intelmqctl's version lookup and bot module discovery (which relies on console_scripts entry points). Switch to importlib.metadata.

Also set PYTHONPATH to the pybuild build directory for dh_auto_test, since pytest otherwise runs against a build-dir copy of the source without the generated egg-info importable.

fixes #2648 fixes #2675

pkg_resources is deprecated and fails to find the installed
distribution in Debian 13's pybuild build environment, breaking both
intelmqctl's version lookup and bot module discovery (which relies on
console_scripts entry points). Switch to importlib.metadata.

Also set PYTHONPATH to the pybuild build directory for dh_auto_test,
since pytest otherwise runs against a build-dir copy of the source
without the generated egg-info importable.

fixes certtools#2648
fixes certtools#2675

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@sebix sebix added this to the 3.5.1 Patch release milestone Sep 13, 2026
@sebix
sebix requested a review from kamil-certat September 13, 2026 20:35

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Test method in packages does not work on Debian 13 detecting intelmq Bot module discovery fails on Debian 13

2 participants