#1147234 poetry: FTBFS against python 3.15rc2

Package:
src:poetry
Source:
src:poetry
Submitter:
Maximiliano Curia
Date:
2026-10-18 20:45:05 UTC
Severity:
normal
Tags:
#1147234#5
Date:
2026-09-09 20:50:51 UTC
From:
To:
Hi!

While rebuilding the python related packages against the Python 3.15rc2
version we found that poetry fails to build from source [1].

To fix it, I've added a backport of upstream commit f47e6b2f: [PATCH]
Fix MetadataNotFound from importlib.metadata on Python 3.15+ (#10860)
[2].

I've applied the upstream fix in the sandbox [3] to verify that it
builds successfully, please consider applying the patch to support the
upcoming 3.15 version.

BTW, upstream is already at 2.4.3, which includes this fix and other
fixes. Upgrading to the latest upstream version would also fix this
issue.

Setting the severity to important for now. Once Python 3.15 is released,
it will be added to python3-defaults and this bug will become release
critical.

Happy hacking,

[1]: https://debusine.debian.net/debian/r-python-python3.15/artifact/4524773/
[2]: https://github.com/python-poetry/poetry/commit/f47e6b2f73e6ea6e1f81fa8963ec0fde30815345
[3]: https://debusine.debian.net/debian/r-python-python3.15/

#1147234#8
Date:
2026-10-18 17:38:55 UTC
From:
To:
Hello,

Bug #1147234 in poetry 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/python-team/packages/poetry/-/commit/c63d3612c7049f562a4f3b74756ce72125f81998
------------------------------------------------------------------------
Merge branch 'debian/master' into 'debian/master'

Fix FTBFS with Python 3.15 (Closes: #1147234)

See merge request python-team/packages/poetry!2
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1147234

#1147234#15
Date:
2026-10-18 20:44:13 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
poetry, 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 1147234@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Nico Della Torre <nicoz91@ubuntu.com> (supplier of updated poetry 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: Sun, 18 Oct 2026 00:43:18 +0200
Source: poetry
Architecture: source
Version: 2.3.4-3
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+python@tracker.debian.org>
Changed-By: Nico Della Torre <nicoz91@ubuntu.com>
Closes: 1147234
Changes:
 poetry (2.3.4-3) unstable; urgency=medium
 .
   * Team upload.
   * Backport upstream commit f47e6b2f: handle importlib.metadata raising
     MetadataNotFound for a dist-info directory without METADATA on
     Python 3.15+ (Closes: #1147234)
   * debian/patches/fix-tests.patch: accept the version reported by
     Python.get_system_python() in test_python_get_preferred_default,
     which drops the pre-release suffix (e.g. 3.15.0rc1).
Checksums-Sha1:
 5c838707cedc79461acac15a6208dfbbacc17f25 3349 poetry_2.3.4-3.dsc
 41bafde0e5dcc46ab9f63c6412af025b59b8bec2 10732 poetry_2.3.4-3.debian.tar.xz
 21d8e52d2ccbc2f8a38d6cc7191b86c155c6a0cc 10218 poetry_2.3.4-3_source.buildinfo
Checksums-Sha256:
 2b3e4a47198a80ba0dc1db7f22fdaf0c324d5399cd8d056300b404fc4bf63465 3349 poetry_2.3.4-3.dsc
 3e265b7d9d79ec9ed07259c3b22a22e5cbf9806256637bf5b5d87a18927f4a7b 10732 poetry_2.3.4-3.debian.tar.xz
 cfad1ff7dbb790b984c568c464508d7164a101ea24a8c5fdaa608d3c41fc759a 10218 poetry_2.3.4-3_source.buildinfo
Files:
 48ae121a99318157e44a2a141b524183 3349 python optional poetry_2.3.4-3.dsc
 2ad38edc5ea11a70ba41529fe7bb9777 10732 python optional poetry_2.3.4-3.debian.tar.xz
 f056c48bd1cabeecaacdeef82b93e6c1 10218 python optional poetry_2.3.4-3_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEj23hBDd/OxHnQXSHMfMURUShdBoFAmrVJqEACgkQMfMURUSh
dBpneQ//ZkkJhUjJcgKogzxdlPKwlDngt5lRRnBBkR21sSDT6Laid/fR0qyYthsy
R3HkbvfqqxjsXLCgtSVjVPoBlwSNEZi9mupkVq/ikX4QhzkkXW9kGN0puUekn02I
c6/a2vjDTEAj+PVfw4u1LZ6AsiWAchyEOgy75CkFMzsn7opA9MZQGfygXwlFsJOv
iHaUiXmDgkJctLFox67YRuJcD5+3IM0C4vp50g8sLAHY/WlhzFMHuULpkKJBlycO
pVtXzZjM7L/CNr6yGQ4gM0umhN+O1YGudzDI1Ny3JdT9a8BdaBw7u+mG63GQmn+/
vhGXdxr80SIWVmuaGSdVphpjhXnLo3hW70ULE2AAH6PLw//hK+3XzVBatzCJtGzx
gxUkWN8U6TFVgCY6qZzP7Gp2Bt0hTEVq4JH3hEHeuLFS+8d88UC2xMx7Te93fh9F
vLiY88bXP/5MGwab7RVsDamo3PCNPoUB8vC+ZjDeOq8zqpFbcQTXSXDWyH5C5TvB
Cfon9hWRmH2Ea79iIKFvkh3cYsVpsRLEDWgcny7YNvjcedv+oX/7aYNrnWcbLr5x
59BadBRhevBpIxFiocHa2RQVSVNET1tlsRb7wQwlPLHPHS2ESnD1gJpjywkqNLY4
VLz28ZLA/cSY7SlVRzxhgAxLCOx8JZ8B3Pb9wGky7SdDWJLRtWM=
=KwYb
-----END PGP SIGNATURE-----