#1083728 pythran: (build-)depends on deprecated module python3-pkg-resources

#1083728#5
Date:
2024-10-04 09:47:59 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.

#1083728#10
Date:
2024-12-05 22:15:01 UTC
From:
To:
I'm confused by this bug.

pythran does not depend on or refer to pkg-resources anywhere.

#1083728#15
Date:
2025-05-11 11:12:49 UTC
From:
To:
Hi,

It's dh-python that translates the requirements of setuptools
into it's runtime component pkg_resources.

pyproject.toml needs to be patched to move "setuptools"
out of 'requires' and into the right option
(I'm not sure for this one part)

Greetings

Alexandre

#1083728#20
Date:
2025-05-11 13:49:36 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
pythran, 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 1083728@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Alexandre Detiste <tchet@debian.org> (supplier of updated pythran 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, 11 May 2025 13:22:32 +0200
Source: pythran
Architecture: source
Version: 0.17.0+ds-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+python@tracker.debian.org>
Changed-By: Alexandre Detiste <tchet@debian.org>
Closes: 1083728
Changes:
 pythran (0.17.0+ds-2) unstable; urgency=medium
 .
   * Team upload.
   * Patch-out generation of python3-pkg-resources dependency
     (Closes: #1083728)
Checksums-Sha1:
 3587d7b4057df87fad5595c362e3687017d43f29 2620 pythran_0.17.0+ds-2.dsc
 31a65eb629a02815559197bdc83f1b6f49b12267 14404 pythran_0.17.0+ds-2.debian.tar.xz
 bf5d9bb62b4f7605ee70b95a87164204f0f66052 9126 pythran_0.17.0+ds-2_source.buildinfo
Checksums-Sha256:
 b1fccce44820481e77cb14ae1d60abbac069d4028ada43fa81b40e6ccf3467ee 2620 pythran_0.17.0+ds-2.dsc
 e3d1842bc7389d914160dbd5dec3acb265617116859e13ee5fdaa0f3d9af5a27 14404 pythran_0.17.0+ds-2.debian.tar.xz
 f65bf6b8f99d02b5c74336bc4302c84791f939ad52792f569dc4eefd1a4c2750 9126 pythran_0.17.0+ds-2_source.buildinfo
Files:
 2390cb76bb02b92bbf636ad9eceb45e5 2620 python optional pythran_0.17.0+ds-2.dsc
 c8e56e6242997a46fa2ce43f144df5fe 14404 python optional pythran_0.17.0+ds-2.debian.tar.xz
 47fc282704df5e8c2a399efec1ed64d0 9126 python optional pythran_0.17.0+ds-2_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQJFBAEBCgAvFiEEj23hBDd/OxHnQXSHMfMURUShdBoFAmggpoQRHHRjaGV0QGRl
Ymlhbi5vcmcACgkQMfMURUShdBonwxAAlvusJS4s/Fe9u2krgbQ4WnKJpYkllCH3
WWa2oJZCxCnmjNB90NGb9AHySFquzu5qzhxxjwjAGKIY0Y/hj+JkoWpzDiLHeLbM
1KwWP0gTeULLLLexr5sZvux7hgFDiSpHHlpQ0qO2T4IBdZsCD7b2zvS+cEHB+pXs
k4Hv5VsnClSuPY4qTMUAjzqf0iSUKJpf0z/SsrX+9epb1GT/G89eFznYZuHcCTOj
cX82BC/UF/GS1Pgsv3LZEjneAenvhPekqJ+PMK+AEh/CCX1UdE/uZz9vayNAPU5N
lC6xXyKO7vtre7TNW6aql39vxWCkJVEtaEgpTL0aplIh/NRLSGF7wpDdlVwMdtCc
XtfqRMBp7DT/s8GAjfX4AHOKYJFsBz/eN1LRXHW6h/UBCPQtnXJaOLC7FTYS9YlK
3D6iDhZOJh/+H5H6JJHX6Ma2PXG2XOvcqqlPkrtUbiAiQBPXH6LFMuSHa9h+Tw+C
/rMQmz5eB9ZSMyFDpbv9eBhFkd21mPs2RiUZMafNJhEMbyMES5+YJbof4pWrQeFQ
9Tt6fjtnG7H29Ikp9E0XRcVzYwHsiAUN4GQZtm77TY4e4iygNkSUq2QdurPRWtfB
pYweS311/QmLnDVuaFicPF3PDgWNniTVDoB8qb3slaqQlbelEYTlLQ21sPKPkh6r
ST+WDLKETAQ=
=/0XR
-----END PGP SIGNATURE-----