Your message dated Wed, 02 Sep 2026 12:05:48 +0000
with message-id <[email protected]>
and subject line Bug#1146433: fixed in python-cliff 4.16.0-2
has caused the Debian Bug report #1146433,
regarding python-cliff: causes breakage in other packages with python 3.15rc1
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1146433: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1146433
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: src:python-cliff
Version: 4.13.3-1
User: [email protected]
Usertags: python3.15
Tags: patch, ftbfs, forky, sid
Hi!
While rebuilding the python related packages against the Python 3.15rc1
version we found that python-cliff builds, but then causes
python-osc-lib to break [1].
This is because the `get_distributions_by_modules` function tries to
read the package metadata, and starting from Python 3.15 this operation
fails when the metadata isn't present (previously invalid reads returned
None). [2]
I've worked around this problem by returning an empty dictionary if the
values can't be read. This is not a proper fix, but simply ignoring data
that was already invalid.
I applied this fix in the sandbox [3] to be able to build the packages
that depend on python-cliff, please consider applying the patch to
support the upcoming 3.15 version.
Happy hacking,
[1]: https://debusine.debian.net/debian/r-python-python3.15/artifact/4582881/
[2]: https://docs.python.org/3.15/whatsnew/3.15.html#importlib-metadata
[3]: https://debusine.debian.net/debian/r-python-python3.15/
--
"Can you imagine what I would do if I could do all I can?" -- Sun Tzu
Saludos /\/\ /\ >< `/
Description: Gracefully handle metadata errors in packages_distributions
In Python 3.15, importlib.metadata.packages_distributions() raises
MetadataNotFound if any distribution directory on sys.path has missing or
incomplete metadata.
Author: Maximiliano Curia <[email protected]>
Forwarded: no
Index: python-cliff/cliff/command.py
===================================================================
--- python-cliff.orig/cliff/command.py
+++ python-cliff/cliff/command.py
@@ -42,7 +42,10 @@ def _get_distributions_by_modules() -> d
if _dists_by_mods is None:
# There can be multiple distribution in the case of namespace packages
# so we'll just grab the first one
- _dists_by_mods = {k: v[0] for k, v in packages_distributions().items()}
+ try:
+ _dists_by_mods = {k: v[0] for k, v in packages_distributions().items()}
+ except Exception:
+ _dists_by_mods = {}
return _dists_by_mods
--- End Message ---
--- Begin Message ---
Source: python-cliff
Source-Version: 4.16.0-2
Done: Thomas Goirand <[email protected]>
We believe that the bug you reported is fixed in the latest version of
python-cliff, 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 [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Thomas Goirand <[email protected]> (supplier of updated python-cliff 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 [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Wed, 02 Sep 2026 13:35:39 +0200
Source: python-cliff
Architecture: source
Version: 4.16.0-2
Distribution: experimental
Urgency: medium
Maintainer: Debian OpenStack <[email protected]>
Changed-By: Thomas Goirand <[email protected]>
Closes: 1146433
Changes:
python-cliff (4.16.0-2) experimental; urgency=medium
.
* Add Gracefully_handle_metadata_packages_distributions.patch
(Closes: #1146433).
Checksums-Sha1:
ffb16496cc76bce622fdc5581fb27d7d054f3c15 2626 python-cliff_4.16.0-2.dsc
2529576e9ae19bc4b959df5da7cf9d9725600398 6544
python-cliff_4.16.0-2.debian.tar.xz
569d2ff11c63def1b6cc0dd2d1edc34898fb1a79 9156
python-cliff_4.16.0-2_amd64.buildinfo
Checksums-Sha256:
7c0ddeeca2600e3d004c7bff7a5e8f35f01368a73266f4c8e56ab7f68ccbdb77 2626
python-cliff_4.16.0-2.dsc
e8839ae5c5191e4152040d22ea16882c5bc19e2364cb37e20f8405e35bb67515 6544
python-cliff_4.16.0-2.debian.tar.xz
a8e6a0e44172b4a02bdd829e0f99dca3308d999d68719ff7d5a64bfe08194a7a 9156
python-cliff_4.16.0-2_amd64.buildinfo
Files:
85a199fefadf13157a02bf284b1799af 2626 python optional python-cliff_4.16.0-2.dsc
748b7f363344ea8f6f981c6692947d65 6544 python optional
python-cliff_4.16.0-2.debian.tar.xz
ec5926a72aa750091ad467515069f588 9156 python optional
python-cliff_4.16.0-2_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEoLGp81CJVhMOekJc1BatFaxrQ/4FAmqYCp8ACgkQ1BatFaxr
Q/43Ww//aCWr7k+O77RFpBE50bXcFV55/e0O+oT245PdJFvLhBe6K+2y0ZLr1pbg
prkRzexTIfdijdtLeQorsoByoGocG+I36N5M5f1S0JEPd5NsRPpGP1Xj2h17EdJB
KJhLV8R0c8QKh2Olow8HPKuUBiKPosi7K0bYRqnNg4yN49zQ4aW+6tvFvuSFKzlQ
s1lxLcVDM6I0ToU9P7beVfa60l/0f+DmdgebwrB25hdKEFoHqQq6m98X6ZPfb5K8
qAl/YDpTu02MJDWH633gCiSQbF0nN24PBelaXdtb/Zd+rU5eAtN9n0ihpWc5KkGv
6SzVv5OYnzIzbF9hNFbnY3mrOApo+s5xEecBRfBQU/heMMWX4Gzll2XkiMruocID
aXpJfNdT5o+XwDBjFzQ7p7ZXQasJ6fdvNPtP8AWYy1BzYWRRnGtWXna9prAF/eY9
abTLb6czSFPlDqWvW6ECTJ5ZJViK2WS+u32nUmXyZfXbcMB6I06WdHB85Y8UVlu1
BPx1PlibURiq+bKERR2i9JsL0bif3Sd1iFYJYjpoYN+HcxTBm+e0vHc5BCOw7o81
7/CeM5rkJfFBr7zfZ7bd3r7OTb7tJmb+5PFA6o7u28VgY0ylzJyyqaOgo8n1liC/
QnEzH5HDZDfoGySPDgNfINI7zD07L3wr7Eu2rwNawNiRYZXCPH8=
=Bp80
-----END PGP SIGNATURE-----
pgpE3yRyWn5Qw.pgp
Description: PGP signature
--- End Message ---