#1137051 poetry: FTBFS in bookworm: Tries to access Internet during build

Package:
src:poetry
Source:
src:poetry
Submitter:
Santiago Vila
Date:
2026-05-18 23:29:02 UTC
Severity:
normal
Tags:
#1137051#5
Date:
2026-05-18 23:19:20 UTC
From:
To:
Dear maintainer:

During a rebuild of all packages in bookworm, this package failed to build.

[ Note: The bug is marked as fixed with the version in trixie/forky/sid, but
  packages in bookworm must still build in bookworm ].

[ Note: The package seems to build ok when using the unshare backend of sbuild,
  but this was not the default in bookworm yet ]

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/bookworm/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:poetry, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean --with python3 --buildsystem=pybuild
   dh_auto_clean -O--buildsystem=pybuild
   dh_autoreconf_clean -O--buildsystem=pybuild
   dh_clean -O--buildsystem=pybuild
 debian/rules binary
dh binary --with python3 --buildsystem=pybuild
   dh_update_autotools_config -O--buildsystem=pybuild
   dh_autoreconf -O--buildsystem=pybuild
   dh_auto_configure -O--buildsystem=pybuild
   dh_auto_build -O--buildsystem=pybuild
I: pybuild plugin_pyproject:107: Building wheel for python3.11 with "build" module
I: pybuild base:240: python3.11 -m build --skip-dependency-check --no-isolation --wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_poetry
* Building wheel...
Successfully built poetry-1.3.2-py3-none-any.whl
I: pybuild plugin_pyproject:119: Unpacking wheel built for python3.11 with "installer" module
   dh_auto_test -O--buildsystem=pybuild
I: pybuild base:240: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3 [too-long-redacted] es_for_git_with_subdirectories'
============================= test session starts ==============================
platform linux -- Python 3.11.2, pytest-7.2.1, pluggy-1.0.0+repack
rootdir: /<<PKGBUILDDIR>>, configfile: pyproject.toml
plugins: xdist-3.1.0, mock-3.8.2
gw0 I / gw1 I
gw0 [1051] / gw1 [1051]

........................................................................ [  6%]
........................................................................ [ 13%]
........................s............................................... [ 20%]
........................................................................ [ 27%]
........................................................................ [ 34%]
.......................................................................s [ 41%]
....................................................s................... [ 47%]
F....................................................................... [ 54%]
........................................................................ [ 61%]
........................................................................ [ 68%]
.......s................................................................ [ 75%]
........................................................................ [ 82%]
........................................................................ [ 89%]
.......................................F................................ [ 95%]
...........................................                              [100%]
=================================== FAILURES ===================================


tests/inspection/test_info.py:206:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

info = <poetry.inspection.info.PackageInfo object at 0x7f1f00935c50>
requires_dist = {'package'}

    def demo_check_info(info: PackageInfo, requires_dist: set[str] = None) -> None:

tests/inspection/test_info.py:100: AssertionError

tests/inspection/test_info.py:224:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

info = <poetry.inspection.info.PackageInfo object at 0x7f1f00840150>
requires_dist = {'package'}

    def demo_check_info(info: PackageInfo, requires_dist: set[str] = None) -> None:

tests/inspection/test_info.py:100: AssertionError
=========================== short test summary info ============================
FAILED tests/inspection/test_info.py::test_info_setup_complex - AssertionErro...
FAILED tests/inspection/test_info.py::test_info_setup_complex_pep517_legacy
================== 2 failed, 1045 passed, 4 skipped in 25.25s ==================
E: pybuild pybuild:388: test: plugin pyproject failed with:  [too-long-redacted] es_for_git_with_subdirectories'
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.11 returned exit code 13
make: *** [debian/rules:62: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

#1137051#12
Date:
2026-05-18 23:27:32 UTC
From:
To:
the default in bookworm).

I tried looking at existing (already closed) bugs but did not
find any which matched the current error.

Thanks.