#1083460 lazr.restfulclient: (build-)depends on deprecated module python3-pkg-resources

#1083460#5
Date:
2024-10-04 09:43:19 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.

#1083460#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):

#1083460#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

#1083460#22
Date:
2025-09-19 15:44:16 UTC
From:
To:
Hi,

Now that there's a way to define namespace packages without pkg_resources,
can this bug be reconsidered?

I don't know how the communication with Ubuntu  devs works.

Greetings

https://git.launchpad.net/lazr.restfulclient

#1083460#27
Date:
2025-09-19 16:39:24 UTC
From:
To:
It'll have to be done as a flag day, in the same sort of way as the
recent Zope work (https://github.com/zopefoundation/meta/issues/194).  I
have no objection but also no time for it.

FWIW, the lazr.* packages are maintained by Canonical's Launchpad team
rather than by Ubuntu developers as such (I'm not sure any of that team
are Ubuntu developers now that William and I have both left).

#1083460#38
Date:
2026-08-02 16:34:03 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
lazr.restfulclient, 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 1083460@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.restfulclient 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 17:16:15 +0100
Source: lazr.restfulclient
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: 1083460
Changes:
 lazr.restfulclient (4.0.0-1) unstable; urgency=medium
 .
   * Team upload.
   * d/watch: Switch to PyPI.
   * New upstream release:
     - Replace pkg_resources namespace with a PEP 420 native namespace
       (closes: #1083460).
   * 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:
 163149ce93c2a950fa25c4b6502b0ec00c0ca403 2438 lazr.restfulclient_4.0.0-1.dsc
 ba5346ca8f3d9e87348ef4395ce9523062ef4de1 58798 lazr.restfulclient_4.0.0.orig.tar.gz
 7f7afb8750f874065982ff630f1c6e9c08141457 5044 lazr.restfulclient_4.0.0-1.debian.tar.xz
 d6bbf0c97538c8447d6ac400c7648faca110d5ee 163168 lazr.restfulclient_4.0.0-1.git.tar.xz
 adae0a2ac4911567c8df9140db66bf8805c620d7 17596 lazr.restfulclient_4.0.0-1_source.buildinfo
Checksums-Sha256:
 8bba784f1bbd7473ba2a425956250aa84f459b1624886d92f1dc6a3a2748f288 2438 lazr.restfulclient_4.0.0-1.dsc
 79577938dabce496675454105c37c5aa06deed7928818a98411adfb22f9e294b 58798 lazr.restfulclient_4.0.0.orig.tar.gz
 1314c73d3257126149ea0a816f246a15749508dab6887e5a991319468e9bcb2b 5044 lazr.restfulclient_4.0.0-1.debian.tar.xz
 c0e1ce71ab20d475ffd2786ae594d20ffc026ee484c7cd11dff6a05be35747b9 163168 lazr.restfulclient_4.0.0-1.git.tar.xz
 622a1d59b2084d4248845bd93fda7f7c918218d68733de19b2152a76f440f1a0 17596 lazr.restfulclient_4.0.0-1_source.buildinfo
Files:
 b6c11d71606349087d41cf0fd9d55a90 2438 python optional lazr.restfulclient_4.0.0-1.dsc
 0a597644fef429f443f03dc86988f02a 58798 python optional lazr.restfulclient_4.0.0.orig.tar.gz
 118c676e4b3fd4b06c0d96271d510163 5044 python optional lazr.restfulclient_4.0.0-1.debian.tar.xz
 3835d23d4a686485df3e400e436696b1 163168 python None lazr.restfulclient_4.0.0-1.git.tar.xz
 dd719e6f6bcfe8e0a6211514ed4b94bb 17596 python optional lazr.restfulclient_4.0.0-1_source.buildinfo
Git-Tag-Info: tag=f219f91971f7e972111a21140cea40c7bdfeb890 fp=ac0a4ff12611b6fccf01c111393587d97d86500b
Git-Tag-Tagger: Colin Watson <cjwatson@debian.org>
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEN02M5NuW6cvUwJcqYG0ITkaDwHkFAmpvba4ACgkQYG0ITkaD
wHlyfg//YOQI/m6JeHEgvixjXZaha8kfl55f9KWQ92sjdn6P1fAlCW9mpNK3mvSc
QHHQSQ6ojBMgTPLYvCTa6SWisSoaEXqaLyKkY0i0/x3LVUutu3UiHh2N82aZc8TF
Nl1/yVqXxFgzfo4gSQJNLNxjJ7U56jdQp3trLDhHKy4i9KLe2oAdDVCSLN64HyTb
VIF3W9OYOxHIczNuVnurwnLMphjC58nd053xmux/0a/FN8WIyHi0Zr/6p7wphrtF
7m6roVPJyBTIV40u4+v3FHeWKuXqSO/8mxyfjqZVHlAPmFKg+EyQ/tvJ7knUoBgr
K4A1Ub1/O58IrxhUrOfUtBAU9WgpnT6wRGBYBLQRZPX3MOey1JAYN0N/NDCH3psz
Hvm6nkCUjGv3dsJHvcxlErQ7NhYzBvdk/QNh0wGnOeQiqneX0iqoLl1Z2HvREk2a
esG7UvU51aQtYgpj9d8ifc8p4DMzF7cPd6+9xboF+BGqdkkYXpBskQ69phNrwRQh
l6FJls3dBZD31NgmwYUdwWXurrzwRkKbxVHJUOnCHnKkmH2px04OhxsNXbenPhET
HJWn7FvVls+TKVlu3SrJgpUctNGNynqb8sPuzH4/dHqS+T0scMTqgqyrSWsAHlEN
TXeEGoPquX6Woz1gfdQIyYMXvCEI53zhw3KVaTCk6Td3ncHbgdk=
=ow5t
-----END PGP SIGNATURE-----