#1146433 python-cliff: causes breakage in other packages with python 3.15rc1

Package:
src:python-cliff
Source:
src:python-cliff
Submitter:
Maximiliano Curia
Date:
2026-09-02 12:07:02 UTC
Severity:
normal
Tags:
#1146433#5
Date:
2026-09-01 19:48:24 UTC
From:
To:
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/

#1146433#8
Date:
2026-09-02 11:38:02 UTC
From:
To:
Hello,

Bug #1146433 in python-cliff 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/openstack-team/python/python-cliff/-/commit/a0e08f3466595db7af1f37b3d9908ba71eb0b846

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1146433

#1146433#13
Date:
2026-09-02 11:41:12 UTC
From:
To:
Hello,

Bug #1146433 in python-cliff 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/openstack-team/python/python-cliff/-/commit/f18271597b9c84399299f14f2838d92f8e70eda9
------------------------------------------------------------------------
* Add Gracefully_handle_metadata_packages_distributions.patch
    (Closes: #1146433).
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1146433

#1146433#18
Date:
2026-09-02 12:05:43 UTC
From:
To:
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 1146433@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 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 ftpmaster@ftp-master.debian.org)
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 <team+openstack@tracker.debian.org>
Changed-By: Thomas Goirand <zigo@debian.org>
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-----

#1146433#23
Date:
2026-09-02 12:05:48 UTC
From:
To:
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 1146433@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 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 ftpmaster@ftp-master.debian.org)
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 <team+openstack@tracker.debian.org>
Changed-By: Thomas Goirand <zigo@debian.org>
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-----