Your message dated Thu, 24 Sep 2026 22:20:34 +0000
with message-id <[email protected]>
and subject line Bug#1146433: fixed in python-cliff 4.16.0-4
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-4
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: Thu, 24 Sep 2026 23:53:19 +0200
Source: python-cliff
Architecture: source
Version: 4.16.0-4
Distribution: unstable
Urgency: medium
Maintainer: Debian OpenStack <[email protected]>
Changed-By: Thomas Goirand <[email protected]>
Closes: 1146433
Changes:
python-cliff (4.16.0-4) unstable; urgency=medium
.
* Fix Gracefully_handle_metadata_packages_distributions.patch
(Closes: #1146433).
Checksums-Sha1:
0b837d1f7b347ab323e116bef18326b92d375523 2626 python-cliff_4.16.0-4.dsc
a0dff6e70b7e2ae54049c662b0d956a46c10bebc 6628
python-cliff_4.16.0-4.debian.tar.xz
dd4d236ee1ed6c51d8c5e935cb50bfb532db4b4b 8864
python-cliff_4.16.0-4_amd64.buildinfo
Checksums-Sha256:
1f1954a3fb6304e1243b3d42583b93ffc60b017cd68de8a41810eb587485ea67 2626
python-cliff_4.16.0-4.dsc
233e3272e88b87cccf8a5605bd58e7bf29723135138d3871de61852c059b1b47 6628
python-cliff_4.16.0-4.debian.tar.xz
d7a13fe7db97f8450bcb9f942f8d62c3b7d0aa6fa928bb59f465370dd821f45f 8864
python-cliff_4.16.0-4_amd64.buildinfo
Files:
cc572a70517d9c49dc24070a20a5b4e0 2626 python optional python-cliff_4.16.0-4.dsc
0dc8f915896e1a6763511eea415ca943 6628 python optional
python-cliff_4.16.0-4.debian.tar.xz
a4534293cf6d79ff6e8d7652c92a1200 8864 python optional
python-cliff_4.16.0-4_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEoLGp81CJVhMOekJc1BatFaxrQ/4FAmq1nJMACgkQ1BatFaxr
Q/5ILQ/+PSZJM6xRo5Xpkae5eXqqolSrU/VlRfKWN+s85qcGY8daYBXQhcNOIjD0
Yrv7Dyn4QdDyCjj1kdMN1uyVTGxjW7ijZfYOfOLn1jrd1mSp4dPXgwddQI5HkJXM
QHsLfHOrkZCzWjgreSNedCdmMFqj9/dAd4PRjVoX6nGbFKpRUYecKXkyevTkcm1P
hRbu7AyTUIVIBbw0FnK14ewMQhSN1KdaW/ruRDqKKwIGjJz+4SVEDlEs+eo+/Lmg
UC19HJzcrdf5aZm/UKlWYL9zLiNTCykBKlY6QPs+e4XNACYo5rgik+cNtQWRuO6h
JpspJgkMH1XiZG0DfAPzG1VDMItXAhHgsCzAr+gCR53FKyc8YMehDQkc7oNNeLt2
a2CcVQjQ7P8at5rVIq6NTr0XCiauy34oD6I5tVhjbr9Qd3JT7/Oah8XqxewrrYVX
ydGY57H/Ane3Z5LNCw0+V89eoM1h+bic6aJ8Wbpfy5krCeEsUi9Dw0SNuPEo8bZd
4JlO/Oildv4SbEgx8vT5PMJQqiSaGzi4Oou9XHnE0Rcuc72TteNL/T2RjJV/WP6U
9onopdRio43SQ9knCgtKUYTRcn6cVNivGOs2MqtTP4QmGBVFoJpRe49cNOoIDlGQ
uElT2H5qmdxbw9kfijKN8AyWNnD4luROLpznq/2XQPd74Mk2Dnc=
=fTPW
-----END PGP SIGNATURE-----
pgpqkJSd7B9am.pgp
Description: PGP signature
--- End Message ---