On Fri, Oct 04, 2024 at 09:42:41AM +0000, Matthias Klose wrote: > Package: src:glueviz > Version: 1.17.1+dfsg-2 > Severity: normal > Tags: sid trixie > User: debian-pyt...@lists.debian.org > Usertags: pkg-resources-deprecation > > [This bug is targeted to the upcoming trixie 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, > importlib.metadata and their backports (importlib_resources, > 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.12 in unstable provides both importlib_resources and > importlib_metadata, so no additional dependencies on those packages are > needed.
Hello glueviz maintainers, I was just looking at a different bug and saw this. The source is the hand-written script debian/glue (installed by debian/glueviz.install). This is an old generated script which imports pkg_resources instead of using the current import mechanism. It also has an out-of-date __requires__. I would suggest removing this in favour of patching setup.cfg to add an appropriate entry to options.entry_points, presumably something like: gui_scripts = glue = glue:glue (but I have no idea what the correct incantation should be: I can't fathom where the entry point currently is). Then in debian/rules, patch the resulting file to add the QT_API setting. Best wishes, Julian