#1083527 pastescript: (build-)depends on deprecated module python3-pkg-resources

#1083527#5
Date:
2024-10-04 09:44:32 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.

#1083527#12
Date:
2025-10-29 17:01:15 UTC
From:
To:
The pastescript package still uses the pkg_resources module.

Raising the severity of this issue. At the end of the
year 2025, raising the severity again to serious.

If the package is a namespace package, then please lower
the severity again to normal.

#1083527#21
Date:
2026-01-02 12:43:27 UTC
From:
To:
Control: severity -1 normal

Yes, this one is a namespace package.

#1083527#30
Date:
2026-09-11 12:22:13 UTC
From:
To:
Hello,

Bug #1083527 in pastescript reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/python-team/packages/pastescript/-/commit/5d67ceb02571e3c700742767672e43aef74e0dbc
------------------------------------------------------------------------
* Add patch to get rid of python3-pkg-resources (Closes: #1083527):
    - switch-away-from-pkg_resources.patch
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1083527

#1083527#35
Date:
2026-09-11 13:13:14 UTC
From:
To:
Hello,

Bug #1083527 in pastescript reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/python-team/packages/pastescript/-/commit/6d292680afade49e0100c493169cfa7088ed5eac
------------------------------------------------------------------------
* Add do-not-use-pkg_resource.patch and remove depends: on setuptools
    (Closes: #1083527).
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1083527

#1083527#40
Date:
2026-09-11 13:36:43 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
pastescript, 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 1083527@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Thomas Goirand <zigo@debian.org> (supplier of updated pastescript 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: Fri, 11 Sep 2026 14:53:36 +0200
Source: pastescript
Architecture: source
Version: 3.7.0-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+python@tracker.debian.org>
Changed-By: Thomas Goirand <zigo@debian.org>
Closes: 1083527
Changes:
 pastescript (3.7.0-2) unstable; urgency=medium
 .
   * Add do-not-use-pkg_resource.patch and remove depends: on setuptools
     (Closes: #1083527).
Checksums-Sha1:
 02bc5beb6b8126339b8ea5787a72775e97698266 2391 pastescript_3.7.0-2.dsc
 25664c078ee5c70f59dca5f2a693c4e37461d6f0 17800 pastescript_3.7.0-2.debian.tar.xz
 86c7f544a006106ce28b72aaae4b27c3f3ac192c 8090 pastescript_3.7.0-2_amd64.buildinfo
Checksums-Sha256:
 276aad9c9b6650144e627f4d395d540173ed4689692de37139bbd1288dd2979d 2391 pastescript_3.7.0-2.dsc
 b24bc07393b5ea1e87bd3a3f94744b876246d559c02e8a79b797d028b7eba7f1 17800 pastescript_3.7.0-2.debian.tar.xz
 c0899e0cbdd9c818427942d65bd9449ed95ced4330c2b7897a38674c39d02e32 8090 pastescript_3.7.0-2_amd64.buildinfo
Files:
 7b9aee55bee02b7a0e84b9c5207107be 2391 python optional pastescript_3.7.0-2.dsc
 7b690014568baa3b39f0275720d3f282 17800 python optional pastescript_3.7.0-2.debian.tar.xz
 8c63ab87d9417dfecd37e4ee8651ed98 8090 python optional pastescript_3.7.0-2_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEoLGp81CJVhMOekJc1BatFaxrQ/4FAmqj/m0ACgkQ1BatFaxr
Q/7i5w/+PL2TAqQIrpYHC44ZMh2D6Smhi69Uh4bYtVhN4XrfFnhyepOf2ItRbFBF
GsUACZZGo3g0FedsJ5+rJiJsRIIZTTLx1uSgJZhH9bqWBTtfCfhNDKnMLkGOsBXk
Tz0h8/9ZmBoE3v1y1vqP6RZipLOixwaPByehv48I1iVAGf16Kgf97Q2kGK7foX/E
f3XQB0CMvGtKGfGeeq9zS6puYzVUC7xWsu1SpjbcI7K1z1vmQ9amNRas8cAbMRMo
LoCVU+yiTKYWVCpgW4icLNsYIC6vyQiMocwZFUpEGCK593rP1LdkFT59mIz+L5ol
rx93TwpHHoEgt/Uz4lsXsMlTDXl9shyShle/Bp5ZBWTBC8PyvKSazOzNIO7UsjCL
cffTECP3k2EI8KPuUhEdpxwp6dMEeVhu/JD0IkUtOoBlQFRilswuQRy9lLkqLlhb
YpRJZp0wCjOibENQWOxuI38NnDiQ4gkP8SG7SlFzXcyYTBLcnGdf8jtTNlhHcf3z
x25eALWM/5qtuxdhmKevx8uRuSDG+adQD0i/dOQD0ibAM356sQHQxZZHRaex4VBK
BK3ZVZAFhC7Dt5hP7i6HWKQjBF2IQVg6WvyuPEl5VyDyh1luGvvx3+gH9K2aniO0
h/HF3ZNtyvKW5xTYDlf14gZluM5pcZ3AfUkpxCKbQAtITjru4fM=
=sd8b
-----END PGP SIGNATURE-----