#1083797 thonny: (build-)depends on deprecated module python3-pkg-resources

Package:
src:thonny
Source:
src:thonny
Submitter:
Matthias Klose
Date:
2026-09-12 09:43:02 UTC
Severity:
normal
Tags:
#1083797#5
Date:
2024-10-04 09:49:11 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.

#1083797#12
Date:
2025-10-29 17:02:29 UTC
From:
To:
The thonny 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.

#1083797#23
Date:
2026-08-01 17:52:57 UTC
From:
To:
tags 1083797 +fixed-upstream

This appears to be fixed in version 5.0.0

https://github.com/thonny/thonny/commit/c1ec71949046e232c5419c41842d86c921d898b6

#1083797#30
Date:
2026-09-12 09:42:18 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
thonny, 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 1083797@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Pieter Lenaerts <plenae@disroot.org> (supplier of updated thonny 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: Sat, 12 Sep 2026 08:55:44 +0200
Binary: thonny
Source: thonny
Architecture: all source
Version: 5.0.0-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Edu Packaging Team <debian-edu-pkg-team@lists.alioth.debian.org>
Changed-By: Pieter Lenaerts <plenae@disroot.org>
Closes: 970808 1083797 1087111
Description:
 thonny     - Python IDE for beginners
Changes:
 thonny (5.0.0-1) unstable; urgency=medium
 .
   * New upstream version 5.0.0 (Closes: #1083797, #970808)
   * Switch from setuptools to uv_build
   * d/control:
     - Version bump stds and dh compat
     - Add self to uploaders
     - Add dh-sequence-single-binary
     - Remove unneeded deps, build-deps & obsolete version specs
     - Add pybuild-plugin-pyproject & python3-uv-build build-dep
     - Add test only build deps.
     - Sort build-deps
     - Remove redundant fields
   * d/rules:
     - Fix lintian warning executable-not-elf-or-script for
       locale/register_updates.py
     - Move more images to /usr/share
     - Override dh_auto_test to actually test.
   * d/thonny.install: move more images to /usr/share
   * Update watchfile to v5
   * Add d/clean to remove extra Expat license file
   * Add override for genuine in-app help files
   * Add d/upstream/metadata
   * d/patches: patch out syntax warnings at pkg install time and piuparts
     (Closes: #1087111)
   * Add autopkgtests
   * Add d/salsa-ci.yml
   * Override dh_auto_test to actually test and add build-deps.
Checksums-Sha1:
 1f21a0ca30a81a7723b654e988e5e097be3855b1 1817 thonny_5.0.0-1.dsc
 a4965e87b059c939b8013a9816ce82a519cdd4f7 2275861 thonny_5.0.0.orig.tar.gz
 a079452c77cc5f8289c6c3c815e4b41809df4335 9420 thonny_5.0.0-1.debian.tar.xz
 a3ac866fbaa145012ddcd161f5f359debe06069b 1276668 thonny_5.0.0-1_all.deb
 4928a678c40c14ea59d7ca5fd36a4e036b70f65c 7669 thonny_5.0.0-1_amd64.buildinfo
Checksums-Sha256:
 3441ce2fbbd37f25883d5883d89d8e25a2d4564302ed8cba31eca786a0381762 1817 thonny_5.0.0-1.dsc
 724be3c0c018ed61ae24ad0bb8f47d633854773e705a0ce3c8c1af4f64ed273e 2275861 thonny_5.0.0.orig.tar.gz
 b6b8a75eba75fa1cdb5e0a419c798c18144c7dcc4bb49678f9e8a396d19cdf3e 9420 thonny_5.0.0-1.debian.tar.xz
 eb1133fd8db67fbe219010682a404aa6a78fa909ce9fcdffbd28e981070eee81 1276668 thonny_5.0.0-1_all.deb
 5990743d598492735017326058e7005959cbf44d64b2da72185cbe64d1538a86 7669 thonny_5.0.0-1_amd64.buildinfo
Files:
 068853950c370699dc5c6cc3164f8aee 1817 devel optional thonny_5.0.0-1.dsc
 66d60f55db4eb31155337b5a4f214235 2275861 devel optional thonny_5.0.0.orig.tar.gz
 03324d8b06f2fc2cdce155fb13a6241d 9420 devel optional thonny_5.0.0-1.debian.tar.xz
 60b866ac1666e5594b75b25c3c732810 1276668 devel optional thonny_5.0.0-1_all.deb
 f52c9942927233b44a1e9cc3298e212a 7669 devel optional thonny_5.0.0-1_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iIkEARYKADEWIQQrLg4/tS9aUxZMq8oFuPKwcqDg6wUCaqUCRRMccGxlbmFlQGRp
c3Jvb3Qub3JnAAoJEAW48rByoODrukUA/1C0oJwWIKhJlfsFVTL1WMrmOWa6Z9bs
KRy/cGo5dBt0AP9fHKvrnbMisT0t5JvidKX5+clUexhLJsq6V6KHbETQDw==
=doyq
-----END PGP SIGNATURE-----