#1083458 lazr.delegates: (build-)depends on deprecated module python3-pkg-resources

#1083458#5
Date:
2024-10-04 09:43:18 UTC
From:
To:
[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.

#1083458#10
Date:
2024-10-04 10:22:32 UTC
From:
To:
While pkg_resources is indeed deprecated upstream, there's nothing that
we can sensibly do about it at the Debian level in lazr.* or zope.*, and
it's not even as clear as you might hope what to do upstream.  They all
do something like this in an __init__.py (with unimportant variations):

#1083458#15
Date:
2024-10-05 02:34:54 UTC
From:
To:
I don't want to force it.  the separation of this module into it's own
module is a Debian specific change to avoid runtime dependencies on
pkg_resources.  So you'll find a lot of hard-coded dependencies that are
just not used anymore. That's what I want to catch for the trixie release.

Matthias

#1083458#24
Date:
2026-08-02 16:19:30 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
lazr.delegates, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1083458@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Colin Watson <cjwatson@debian.org> (supplier of updated lazr.delegates package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Sun, 02 Aug 2026 16:44:48 +0100
Source: lazr.delegates
Architecture: source
Version: 4.0.0-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+python@tracker.debian.org>
Changed-By: Colin Watson <cjwatson@debian.org>
Closes: 1083458
Changes:
 lazr.delegates (4.0.0-1) unstable; urgency=medium
 .
   * New upstream release:
     - Replace pkg_resources namespace with a PEP 420 native namespace
       (closes: #1083458).
   * Drop "Rules-Requires-Root: no", default as of dpkg-dev 1.22.13.
   * Drop "Priority: optional", default as of dpkg-dev 1.22.13.
   * Standards-Version: 4.7.4.
Checksums-Sha1:
 d8484c1d5984f30e8e3c60d773b4cca5fc7c101e 2573 lazr.delegates_4.0.0-1.dsc
 1520d665f49a1b565e8e176d18480d384aea9071 13661 lazr.delegates_4.0.0.orig.tar.gz
 479e78dcd52f63c6d95c88a94ae179cb7aa9a072 3736 lazr.delegates_4.0.0-1.debian.tar.xz
 d0c4aa9e007a38d3db7bc11141ec7dafa78b6db1 46524 lazr.delegates_4.0.0-1.git.tar.xz
 36fc1c6ebbf7206c5dd656e61a242c4a51124017 17580 lazr.delegates_4.0.0-1_source.buildinfo
Checksums-Sha256:
 f0d64a813a45f10305d7a03b677b53fcccf3650451053921146e045d448148b9 2573 lazr.delegates_4.0.0-1.dsc
 bb15c21a01b577ab5fac73da61b154dd6fcd377f3af02e522077b4ae11feed37 13661 lazr.delegates_4.0.0.orig.tar.gz
 b3e45c94d5384656913a6c9aa330d8f738933500105c6a37a14c47eb1e1bf74c 3736 lazr.delegates_4.0.0-1.debian.tar.xz
 90aa418479ff8b00b6625ece5c23d4cfc698a1f47b53e61fb1eb8b14902d764c 46524 lazr.delegates_4.0.0-1.git.tar.xz
 cb8975b96f57c9a06f355edc9f789e3a2d3e68d8ce68d56adc44e20d8c9b8a2f 17580 lazr.delegates_4.0.0-1_source.buildinfo
Files:
 ea461f9f4facddf46a8f8ac59c2cebb6 2573 python optional lazr.delegates_4.0.0-1.dsc
 de46168203a7a54e637ddaf5693a1bbd 13661 python optional lazr.delegates_4.0.0.orig.tar.gz
 2b1d00c8caee081245b74f71a115ae35 3736 python optional lazr.delegates_4.0.0-1.debian.tar.xz
 ac18adf72bf01f7eca24c99361d48caa 46524 python None lazr.delegates_4.0.0-1.git.tar.xz
 b6b12c428dc23eecccdbb47cc0c2c3dc 17580 python optional lazr.delegates_4.0.0-1_source.buildinfo
Git-Tag-Info: tag=f0593c1a2bff1fb3708986933c5d604870ca063d fp=ac0a4ff12611b6fccf01c111393587d97d86500b
Git-Tag-Tagger: Colin Watson <cjwatson@debian.org>
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEN02M5NuW6cvUwJcqYG0ITkaDwHkFAmpvZywACgkQYG0ITkaD
wHmZfxAAzl9h/SoRbRaXA5I0m9CUe5hwLNXacS21rA1c3hNNiM34H8nWl1Z78ll2
vX5zbm3kJbEbRlUZ+88M4d96uSQnEWjWtWFZqnrK1LDw3elyhGvxxv7U/GjZ3Pmb
thWMr51zM7YkyptS6EnCSKZJxR74TWFjUpLtWPEgh3mWQ1XmFcHE2zKFE6cxXSGp
UFAqxNRbbAdhYyC4+S/7Tg+aETbTlDqogSjP9/qfNKhwxUQeGtwcYhutTu5sqMn1
HvAYBV4LKh4UjE3OCckMW2u+nL/IwB8TDG1YYNpCiyoWu6C3b3L2CSasu061RlfZ
BW01vCok6x3fQ6GR2BntU/p5ahomQX6vvH1UP11N48P6MahmIYktHqfK9+T7JfJ2
E3Ilhz65aFDjR7BvqMaWCiCqBrG0eEqolfs+Bi6Wh/HDsgF0N/ZlyDRdix+sI4qV
sAhN6J7kTdMQeB0RVB1o+3SgKYWyb2j6NoN9Xn1XXW937XJnaiZCDq9TVeTz8SAt
P64kENSMSYBE3BqEv/0L4cfaaMiRTBK5O96GxqXH6l4PUQr96+EXTsqEkX4k/8DB
xVGS0fY+/BTSwl47Nivyfa2SDI5307ZJhFtji9Q8bGk/ZaoKr9Oy1CougWFkAqba
jps4MM4AWau/i6HLKjYrFg17xeMrngN+NX1HSAsP2Oc+Tqi9f7o=
=LLMz
-----END PGP SIGNATURE-----