Your message dated Wed, 02 Sep 2026 12:05:43 +0000
with message-id <[email protected]>
and subject line Bug#1146433: fixed in python-cliff 4.13.3-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.13.3-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:38:55 +0200
Source: python-cliff
Architecture: source
Version: 4.13.3-2
Distribution: unstable
Urgency: medium
Maintainer: Debian OpenStack <[email protected]>
Changed-By: Thomas Goirand <[email protected]>
Closes: 1146433
Changes:
 python-cliff (4.13.3-2) unstable; urgency=medium
 .
   * Add Gracefully_handle_metadata_packages_distributions.patch
     (Closes: #1146433).
Checksums-Sha1:
 27c470a95b086d238735b7fb2a4c2e80136bc350 2660 python-cliff_4.13.3-2.dsc
 5d0d039c18c973fd36b439869f724b87bf923c57 6512 
python-cliff_4.13.3-2.debian.tar.xz
 e42dd6d60978e6542bf6c48bc8d79efc41bdefc9 9187 
python-cliff_4.13.3-2_amd64.buildinfo
Checksums-Sha256:
 b022294fc6b93998d41fcd0f358eccb4d40d8afa4610cf83a772dbc0778b1f00 2660 
python-cliff_4.13.3-2.dsc
 364d4f2da47b27683668d8d1dba125d24d0296b1ab7ffe173d5c01b1c81b40b0 6512 
python-cliff_4.13.3-2.debian.tar.xz
 697b2fd936b81478fd30b8f6b3f0b1ec12ca83bbab0b533828f80c58ea7ada4d 9187 
python-cliff_4.13.3-2_amd64.buildinfo
Files:
 0735d029ba2cb6f2b9b96172d230615b 2660 python optional python-cliff_4.13.3-2.dsc
 d6f7d983d572d6b33301c9854cc3ed80 6512 python optional 
python-cliff_4.13.3-2.debian.tar.xz
 50d23dbab1b817f846dacdc7b9a6b21a 9187 python optional 
python-cliff_4.13.3-2_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEoLGp81CJVhMOekJc1BatFaxrQ/4FAmqYC1kACgkQ1BatFaxr
Q/52yRAAmtDOWc4eFLZCaloBK3kTetLiHNjGhQd5ZHq9BMRGubi1U7ek1cTjindW
OuoLubO+2nO1y+lu6hXlYiYVmMmfxgCknN634aNAdGA3UVhsnwOjM9GqZmcB54C+
ev7zBlCjgRlYTmoLKj9CbdvK+ZiWA+JoJ74rFuB27c6vt3zHsvsda4eim9MiHeg+
htE4EsbiWZBBqy+nuyK1BsONBtot9C4SL4kMZ4PvPa8Mn3g3rrcIoHb0+Go1Oz3C
7HbwmWbAr1fwK/PMNg8cJRGeBAk68hrq+VgrhFlBjeyrzKN6BnTDLN8qgmD8nUhv
tSL46lpU4IgRM7RuRh6spKIC9oxRbzP8WpMTZ56DOVOtEHLb0uRwRjWf1sWF4llL
8MrgnIQ8vzFORGtEU6QXJxnNFi1gbwCVKgEmETMkm6+2E7rSJ0F+MxDfqXNTFysP
rXhcWjtyrEEAR2INqsD43ZU9jiZYSipdObqjCGv92DRM5KcisKRoRe3a3j+ujVca
XEWea/EfGZw50nztf0dA4k+4RwD/hKKbNc8+leLlUJyfV/LIo1IBNJYxk6vV9qN7
5Brs2nMi715WEokIpW5fL8VofJPyG5ymHwdab8HPynX+HLwCFnjV04P7sTjXwqhM
9pnG2+44PE5qkONyI2iJbUqVG9HTNbSGAHg5SUWexe+qX0MAqV0=
=DjTM
-----END PGP SIGNATURE-----

Attachment: pgpIDJpjdtLwX.pgp
Description: PGP signature


--- End Message ---

Reply via email to