Hi,

Please look at https://packages.debian.org/unstable/virtme-ng

python3-pkg-resources is listed.

How did that happen?

That is indeed not obvious at all.

Previously dh-python was translating any "setuptools" dependency
into python3-pkg-resources. Now it add a runtime dependency on
python3-setuptools.

https://sources.debian.org/src/virtme-ng/1.38-2/setup.py#L145

In most cases the solutions is to remove "setuptools"
from the "install_requires=" stanza in setup.py.

Then this change should also be forwarded upstream.

Greetings

Alexandre



Le mar. 20 janv. 2026 à 16:43, Debian Bug Tracking System
<[email protected]> a écrit :
> ---------- Forwarded message ----------
> From: Ricardo Ribalda Delgado <[email protected]>
> To: [email protected]
> Cc:
> Bcc:
> Date: Tue, 20 Jan 2026 16:41:05 +0100
> Subject:
> I cant find any reference to pkg_resource
>
>
> ribalda@penguin:~/work/virtme-ng$ git grep pkg_reso
> ribalda@penguin:~/work/virtme-ng$ git grep pkg-res
> ribalda@penguin:~/work/virtme-ng$ git grep importlib
> virtme/resources.py:from importlib import resources as importlib_resources
> virtme/resources.py:    if
> importlib_resources.files(virtme).joinpath("guest").is_dir():
> virtme/resources.py:        return
> str(importlib_resources.files(virtme) / "guest")
> virtme/resources.py:    fn = importlib_resources.files(virtme) / "../bin" / 
> name
> virtme_ng/version.py:from importlib.metadata import
> PackageNotFoundError, version
> ribalda@penguin:~/work/virtme-ng$
>
> --
> Ricardo Ribalda
>
>
> ---------- Forwarded message ----------
> From: [email protected]
> To: [email protected]
> Cc:
> Bcc:
> Date: Sun, 18 Jan 2026 13:45:40 +0100
> Subject: virtme-ng: (build-)depends on deprecated module python3-pkg-resources
> Package: virtme-ng
> Severity: serious
> Tags: sid forky
> User: [email protected]
> Usertags: pkg-resources-deprecation
>
> [This bug is targeted to the upcoming forky release]
>
> The package build-depends or depends on python3-pkg-resources, which
> is deprecated upstream. Details can be found at
>
> https://setuptools.pypa.io/en/latest/pkg_resources.html
>
> Use of pkg_resources is deprecated in favor of importlib.resources
> and importlib.metadata. Some useful APIs are also provided by
> packaging (e.g. requirements and version parsing). Users should
> refrain from new usage of pkg_resources and should work to port to
> importlib-based solutions.
>
> Python 3.13 in unstable provides both importlib.resources and
> importlib.metadata, so no additional dependencies on those packages
> are needed.
>
> If the package is a namespace package, then please lower the severity
> again to normal.

Reply via email to