Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1231523

Bug#1083421: glueviz: (build-)depends on deprecated module python3-pkg-resources

From Julian Gilbey <jdg@debian.org>
Newsgroups linux.debian.bugs.dist
Subject Bug#1083421: glueviz: (build-)depends on deprecated module python3-pkg-resources
Date 2025-02-03 08:30 +0100
Message-ID <KbZ45-e0No-1@gated-at.bofh.it> (permalink)
References <KbZ45-e0No-3@gated-at.bofh.it> <KbZ45-e0No-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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-python@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

Back to linux.debian.bugs.dist | Previous | Next | Find similar | Unroll thread


Thread

Bug#1083421: glueviz: (build-)depends on deprecated module python3-pkg-resources Julian Gilbey <jdg@debian.org> - 2025-02-03 08:30 +0100

csiph-web