Your message dated Wed, 13 Sep 2023 02:46:28 +0000
with message-id <e1qgftc-00gsxl...@fasolo.debian.org>
and subject line Bug#1050688: fixed in poetry 1.6.1+dfsg-2
has caused the Debian Bug report #1050688,
regarding poetry: needs internet access during build?
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 ow...@bugs.debian.org
immediately.)


-- 
1050688: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1050688
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: poetry:
Version: 1.5.1+dfsg-4
Severity: serious

Hello, this looks similar to #1031444 but with different test log, so I prefer 
to open a new defect.
The issue however might be linked, due to the fact that poetry looks doing some 
remote connections to github
during testsuite run.
If you disable internet access you might see that the package FTBFS

dpkg-buildpackage: info: source package poetry
dpkg-buildpackage: info: source version 1.5.1+dfsg-3
dpkg-buildpackage: info: source distribution unstable
 dpkg-source --before-build .
dpkg-buildpackage: info: host architecture amd64
dpkg-source: info: using options from poetry-1.5.1+dfsg/debian/source/options: 
--extend-diff-ignore=^[^/]*[.]egg-info/
 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:110: Building wheel for python3.11 with "build" 
module
I: pybuild base:291: python3.11 -m build --skip-dependency-check --no-isolation --wheel 
--outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_poetry
* Building wheel...
Successfully built poetry-1.5.1-py3-none-any.whl
I: pybuild plugin_pyproject:122: Unpacking wheel built for python3.11 with 
"installer" module
   dh_auto_test -O--buildsystem=pybuild
I: pybuild base:291: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_poetry/build; 
python3.11 -m pytest --ignore=tests/console/commands/env/test_list.py 
--ignore=tests/console/commands/env/test_remove.py 
--ignore=tests/console/commands/env/test_use.py --ignore=tests/utils/test_env.py 
--ignore=tests/config/test_config.py --ignore=tests/utils/test_helpers.py -k 'not 
test_self_update_should_install_all_necessary_elements and not 
test_add_file_constraint_sdist and not test_add_file_constraint_sdist_old_installer and not 
test_builder_setup_generation_runs_with_pip_editable and not test_publish_dry_run and not 
test_info_from_sdist and not test_installer_can_install_dependencies_from_forced_source and 
not test_search_for_file_sdist and not test_search_for_file_sdist_with_extras and not 
test_solver_can_resolve_sdist_dependencies and not 
test_solver_can_resolve_sdist_dependencies_with_extras and not 
test_solver_chooses_from_correct_repository_if_forced and not 
test_solver_chooses_from_correct_repository_if_forced_and_transitive_dependency and not 
test_solver_does_not_choose_from_secondary_repository_by_default and not 
test_solver_chooses_from_secondary_if_explicit and not 
test_get_package_information_fallback_read_setup and not 
test_get_package_information_skips_dependencies_with_invalid_constraints and not 
test_get_package_retrieves_packages_with_no_hashes and not 
test_fallback_can_read_setup_to_get_dependencies and not 
test_exporter_can_export_requirements_txt_with_file_packages and not 
test_exporter_can_export_requirements_txt_with_file_packages_and_markers and not 
test_lock_no_update and not test_locker_dumps_dependency_information_correctly and not 
test_package_partial_yank and not test_run_installs_with_same_version_url_files and not 
test_env_info_displays_complete_info and not test_skip_existing_output and not 
test_installer_should_use_the_locked_version_of_git_dependencies_with_extras and not 
test_installer_should_use_the_locked_version_of_git_dependencies_without_reference and not 
test_installer_uses_prereleases_if_they_are_compatible and not 
test_requirement_git_subdirectory and not test_check_valid and not test_check_invalid and 
not test_packages_property_returns_empty_list and not test_parse_dependency_specification 
and not test_info_setup_missing_mandatory_should_trigger_pep517 and not 
test_uninstall_git_package_nspkg_pth_cleanup and not 
test_executor_should_write_pep610_url_references_for_directories and not 
test_executor_should_write_pep610_url_references_for_git and not 
test_executor_should_write_pep610_url_references_for_git_with_subdirectories and not 
test_executor_should_write_pep610_url_references_for_git_with_subdirectories and not 
test_executor_should_write_pep610_url_references_for_non_wheel_urls and not 
test_executor_should_write_pep610_url_references_for_non_wheel_files and not 
test_prepare_sdist and not test_shell'
============================= test session starts ==============================
platform linux -- Python 3.11.5, pytest-7.4.0, pluggy-1.2.0
rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_poetry/build
configfile: pyproject.toml
testpaths: tests
plugins: mock-3.11.1, xdist-3.3.1
created: 4/4 workers
4 workers [1171 items]

......................................................................... [  6%]
........................................................................ [ 12%]
........................................................................ [ 18%]
........................................................................ [ 24%]
..................................................F..........s.......... [ 30%]
...................................................F.............s...... [ 36%]
........................................................................ [ 43%]
...................................................................F.F.F [ 49%]
.F..F.F..F.F.F............F..F.......................................... [ 55%]
........................................................................ [ 61%]
.......s..............F.F.....F......................................... [ 67%]
........................................................................ [ 73%]
........................................................................ [ 80%]
........................................................................ [ 86%]
...................................................s.................... [ 92%]
.............................FFF........................................ [ 98%]
.................F                                                       [100%]
=================================== FAILURES ===================================
_________________________ test_info_from_requires_txt __________________________
[gw1] linux -- Python 3.11.5 /usr/bin/python3.11

fixture_dir = <function fixture_dir.<locals>._fixture_dir at 0x7facc27aa160>

    def test_info_from_requires_txt(fixture_dir: FixtureDirGetter) -> None:
        info = PackageInfo.from_metadata(
            fixture_dir("inspection") / "demo_only_requires_txt.egg-info"
        )
      assert info is not None
E       assert None is not None

tests/inspection/test_info.py:160: AssertionError
______________ test_run_installs_with_local_setuptools_directory _______________
[gw2] linux -- Python 3.11.5 /usr/bin/python3.11

installer = <poetry.installation.installer.Installer object at 0x7f3c96d3ed10>
locker = <tests.installation.test_installer.Locker object at 0x7f3cb842be90>
repo = <poetry.repositories.repository.Repository object at 0x7f3cb842a6d0>
package = Package('root', '1.0')
tmpdir = 
local('/tmp/pytest-of-buildd/pytest-0/popen-gw2/test_run_installs_with_local_s0')
fixture_dir = <function fixture_dir.<locals>._fixture_dir at 0x7f3cb8746340>

    def test_run_installs_with_local_setuptools_directory(
        installer: Installer,
        locker: Locker,
        repo: Repository,
        package: ProjectPackage,
        tmpdir: Path,
        fixture_dir: FixtureDirGetter,
    ) -> None:
        root_dir = Path(__file__).parent.parent.parent
        package.root_dir = root_dir
        locker.set_lock_path(root_dir)
        file_path = fixture_dir("project_with_setup/")
        package.add_dependency(
            Factory.create_dependency(
                "project-with-setup",
                {"path": str(file_path.relative_to(root_dir))},
                root_dir=root_dir,
            )
        )
repo.add_package(get_package("pendulum", "1.4.4"))
        repo.add_package(get_package("cachy", "0.2.0"))
result = installer.run()
        assert result == 0
expected = fixture("with-directory-dependency-setuptools")
      assert locker.written_data == expected
E       AssertionError: assert {'metadata': ...s': [], ...}]} == {'package': 
[... '123456789'}}
E         Omitting 1 identical items, use -vv to show
E         Differing items:
E         {'package': [{'description': '', 'files': [], 'name': 'cachy', 'optional': False, ...}, 
{'description': '', 'files': [...': ['msgpack'], 'version': '>=0.2.0'}, 'pendulum': 
'>=1.4.4'}, 'description': '', 'develop': False, 'files': [], ...}]} != {'package': <AoT 
[{'name': 'cachy', 'version': '0.2.0', 'description': '', 'optional': False, 'python-versions': 
'*', ...oject_with_setup'}, 'dependencies': {'cachy': {'version': '>=0.2.0', 'extras': 
['msgpack']}, 'pendulum': '>=1.4.4'}}]>}
E         Use -v to get more diff

tests/installation/test_installer.py:1379: AssertionError
------------------------------ Captured log call -------------------------------
DEBUG    poetry.repositories.repository.Repository:repository.py:104 <c1>Source 
(repo):</c1> 1 packages found for cachy >=0.2.0
DEBUG    poetry.repositories.repository.Repository:repository.py:104 <c1>Source 
(repo):</c1> 1 packages found for pendulum >=1.4.4
DEBUG    poetry.repositories.repository.Repository:repository.py:104 <c1>Source 
(repo):</c1> 1 packages found for cachy 0.2.0
DEBUG    poetry.repositories.repository.Repository:repository.py:104 <c1>Source 
(poetry-repo):</c1> 1 packages found for cachy >=0.2.0
DEBUG    poetry.repositories.repository.Repository:repository.py:104 <c1>Source 
(poetry-repo):</c1> 1 packages found for pendulum >=1.4.4
DEBUG    poetry.repositories.repository.Repository:repository.py:104 <c1>Source 
(poetry-repo):</c1> 1 packages found for cachy 0.2.0
______________________ test_search_for_vcs_setup_egg_info ______________________
[gw2] linux -- Python 3.11.5 /usr/bin/python3.11

provider = <poetry.puzzle.provider.Provider object at 0x7f3cb7574ad0>

    def test_search_for_vcs_setup_egg_info(provider: Provider) -> None:
        dependency = VCSDependency("demo", "git", 
"https://github.com/demo/demo.git";)
package = provider.search_for_direct_origin_dependency(dependency) assert package.name == "demo"
        assert package.version.text == "0.1.2"
required = [r for r in package.requires if not r.is_optional()]
        optional = [r for r in package.requires if r.is_optional()]
        assert required == [get_dependency("pendulum", ">=1.4.4")]
      assert optional == [get_dependency("tomlkit"), get_dependency("cleo")]
E       assert [<Dependency ...ency tomlkit>] == [<Dependency ...endency cleo>]
E         At index 0 diff: <Dependency cleo> != <Dependency tomlkit>
E         Use -v to get more diff

tests/puzzle/test_provider.py:182: AssertionError
________________ test_search_for_vcs_setup_egg_info_with_extras ________________
[gw2] linux -- Python 3.11.5 /usr/bin/python3.11

provider = <poetry.puzzle.provider.Provider object at 0x7f3c97f81b50>

    def test_search_for_vcs_setup_egg_info_with_extras(provider: Provider) -> 
None:
        dependency = VCSDependency(
            "demo", "git", "https://github.com/demo/demo.git";, extras=["foo"]
        )
package = provider.search_for_direct_origin_dependency(dependency) assert package.name == "demo"
        assert package.version.text == "0.1.2"
required = [r for r in package.requires if not r.is_optional()]
        optional = [r for r in package.requires if r.is_optional()]
        assert required == [get_dependency("pendulum", ">=1.4.4")]
      assert optional == [get_dependency("tomlkit"), get_dependency("cleo")]
E       assert [<Dependency ...ency tomlkit>] == [<Dependency ...endency cleo>]
E         At index 0 diff: <Dependency cleo> != <Dependency tomlkit>
E         Use -v to get more diff

tests/puzzle/test_provider.py:202: AssertionError
________________________ test_search_for_vcs_read_setup ________________________
[gw2] linux -- Python 3.11.5 /usr/bin/python3.11

provider = <poetry.puzzle.provider.Provider object at 0x7f3cb8337f10>
mocker = <pytest_mock.plugin.MockerFixture object at 0x7f3c97f94fd0>

    def test_search_for_vcs_read_setup(provider: Provider, mocker: MockerFixture) 
-> None:
        mocker.patch("poetry.utils.env.EnvManager.get", return_value=MockEnv())
dependency = VCSDependency("demo", "git", "https://github.com/demo/demo.git";) package = provider.search_for_direct_origin_dependency(dependency) assert package.name == "demo"
        assert package.version.text == "0.1.2"
required = [r for r in package.requires if not r.is_optional()]
        optional = [r for r in package.requires if r.is_optional()]
        assert required == [get_dependency("pendulum", ">=1.4.4")]
      assert optional == [get_dependency("tomlkit"), get_dependency("cleo")]
E       assert [<Dependency ...ency tomlkit>] == [<Dependency ...endency cleo>]
E         At index 0 diff: <Dependency cleo> != <Dependency tomlkit>
E         Use -v to get more diff

tests/puzzle/test_provider.py:222: AssertionError
__________________ test_search_for_vcs_read_setup_with_extras __________________
[gw2] linux -- Python 3.11.5 /usr/bin/python3.11

provider = <poetry.puzzle.provider.Provider object at 0x7f3c96df1190>
mocker = <pytest_mock.plugin.MockerFixture object at 0x7f3c97f94390>

    def test_search_for_vcs_read_setup_with_extras(
        provider: Provider, mocker: MockerFixture
    ) -> None:
        mocker.patch("poetry.utils.env.EnvManager.get", return_value=MockEnv())
dependency = VCSDependency(
            "demo", "git", "https://github.com/demo/demo.git";, extras=["foo"]
        )
package = provider.search_for_direct_origin_dependency(dependency) assert package.name == "demo"
        assert package.version.text == "0.1.2"
required = [r for r in package.requires if not r.is_optional()]
        optional = [r for r in package.requires if r.is_optional()]
        assert required == [get_dependency("pendulum", ">=1.4.4")]
      assert optional == [get_dependency("tomlkit"), get_dependency("cleo")]
E       assert [<Dependency ...ency tomlkit>] == [<Dependency ...endency cleo>]
E         At index 0 diff: <Dependency cleo> != <Dependency tomlkit>
E         Use -v to get more diff

tests/puzzle/test_provider.py:246: AssertionError
________________ test_search_for_directory_setup_egg_info[demo] ________________
[gw2] linux -- Python 3.11.5 /usr/bin/python3.11

provider = <poetry.puzzle.provider.Provider object at 0x7f3cb84f8f90>
directory = 'demo'
fixture_dir = <function fixture_dir.<locals>._fixture_dir at 0x7f3cb8746340>

    @pytest.mark.parametrize("directory", ["demo", "non-canonical-name"])
    def test_search_for_directory_setup_egg_info(
        provider: Provider, directory: str, fixture_dir: FixtureDirGetter
    ) -> None:
        dependency = DirectoryDependency(
            "demo",
            fixture_dir("git") / "github.com" / "demo" / directory,
        )
package = provider.search_for_direct_origin_dependency(dependency) assert package.name == "demo"
        assert package.version.text == "0.1.2"
required = [r for r in package.requires if not r.is_optional()]
        optional = [r for r in package.requires if r.is_optional()]
        assert required == [get_dependency("pendulum", ">=1.4.4")]
      assert optional == [get_dependency("tomlkit"), get_dependency("cleo")]
E       assert [<Dependency ...ency tomlkit>] == [<Dependency ...endency cleo>]
E         At index 0 diff: <Dependency cleo> != <Dependency tomlkit>
E         Use -v to get more diff

tests/puzzle/test_provider.py:280: AssertionError
_________ test_search_for_directory_setup_egg_info[non-canonical-name] _________
[gw2] linux -- Python 3.11.5 /usr/bin/python3.11

provider = <poetry.puzzle.provider.Provider object at 0x7f3cb8460c50>
directory = 'non-canonical-name'
fixture_dir = <function fixture_dir.<locals>._fixture_dir at 0x7f3cb8746340>

    @pytest.mark.parametrize("directory", ["demo", "non-canonical-name"])
    def test_search_for_directory_setup_egg_info(
        provider: Provider, directory: str, fixture_dir: FixtureDirGetter
    ) -> None:
        dependency = DirectoryDependency(
            "demo",
            fixture_dir("git") / "github.com" / "demo" / directory,
        )
package = provider.search_for_direct_origin_dependency(dependency) assert package.name == "demo"
        assert package.version.text == "0.1.2"
required = [r for r in package.requires if not r.is_optional()]
        optional = [r for r in package.requires if r.is_optional()]
        assert required == [get_dependency("pendulum", ">=1.4.4")]
      assert optional == [get_dependency("tomlkit"), get_dependency("cleo")]
E       assert [<Dependency ...ency tomlkit>] == [<Dependency ...endency cleo>]
E         At index 0 diff: <Dependency cleo> != <Dependency tomlkit>
E         Use -v to get more diff

tests/puzzle/test_provider.py:280: AssertionError
_____________ test_search_for_directory_setup_egg_info_with_extras _____________
[gw2] linux -- Python 3.11.5 /usr/bin/python3.11

provider = <poetry.puzzle.provider.Provider object at 0x7f3cb848a210>
fixture_dir = <function fixture_dir.<locals>._fixture_dir at 0x7f3cb8746340>

    def test_search_for_directory_setup_egg_info_with_extras(
        provider: Provider, fixture_dir: FixtureDirGetter
    ) -> None:
        dependency = DirectoryDependency(
            "demo",
            fixture_dir("git") / "github.com" / "demo" / "demo",
            extras=["foo"],
        )
package = provider.search_for_direct_origin_dependency(dependency) assert package.name == "demo"
        assert package.version.text == "0.1.2"
required = [r for r in package.requires if not r.is_optional()]
        optional = [r for r in package.requires if r.is_optional()]
        assert required == [get_dependency("pendulum", ">=1.4.4")]
      assert optional == [get_dependency("tomlkit"), get_dependency("cleo")]
E       assert [<Dependency ...ency tomlkit>] == [<Dependency ...endency cleo>]
E         At index 0 diff: <Dependency cleo> != <Dependency tomlkit>
E         Use -v to get more diff

tests/puzzle/test_provider.py:304: AssertionError
_______________ test_search_for_directory_setup_with_base[demo] ________________
[gw2] linux -- Python 3.11.5 /usr/bin/python3.11

provider = <poetry.puzzle.provider.Provider object at 0x7f3c96df9090>
directory = 'demo'
fixture_dir = <function fixture_dir.<locals>._fixture_dir at 0x7f3cb8746340>

    @pytest.mark.parametrize("directory", ["demo", "non-canonical-name"])
    def test_search_for_directory_setup_with_base(
        provider: Provider, directory: str, fixture_dir: FixtureDirGetter
    ) -> None:
        dependency = DirectoryDependency(
            "demo",
            fixture_dir("git") / "github.com" / "demo" / directory,
            base=fixture_dir("git") / "github.com" / "demo" / directory,
        )
package = provider.search_for_direct_origin_dependency(dependency) assert package.name == "demo"
        assert package.version.text == "0.1.2"
required = [r for r in package.requires if not r.is_optional()]
        optional = [r for r in package.requires if r.is_optional()]
        assert required == [get_dependency("pendulum", ">=1.4.4")]
      assert optional == [get_dependency("tomlkit"), get_dependency("cleo")]
E       assert [<Dependency ...ency tomlkit>] == [<Dependency ...endency cleo>]
E         At index 0 diff: <Dependency cleo> != <Dependency tomlkit>
E         Use -v to get more diff

tests/puzzle/test_provider.py:329: AssertionError
________ test_search_for_directory_setup_with_base[non-canonical-name] _________
[gw2] linux -- Python 3.11.5 /usr/bin/python3.11

provider = <poetry.puzzle.provider.Provider object at 0x7f3cb61565d0>
directory = 'non-canonical-name'
fixture_dir = <function fixture_dir.<locals>._fixture_dir at 0x7f3cb8746340>

    @pytest.mark.parametrize("directory", ["demo", "non-canonical-name"])
    def test_search_for_directory_setup_with_base(
        provider: Provider, directory: str, fixture_dir: FixtureDirGetter
    ) -> None:
        dependency = DirectoryDependency(
            "demo",
            fixture_dir("git") / "github.com" / "demo" / directory,
            base=fixture_dir("git") / "github.com" / "demo" / directory,
        )
package = provider.search_for_direct_origin_dependency(dependency) assert package.name == "demo"
        assert package.version.text == "0.1.2"
required = [r for r in package.requires if not r.is_optional()]
        optional = [r for r in package.requires if r.is_optional()]
        assert required == [get_dependency("pendulum", ">=1.4.4")]
      assert optional == [get_dependency("tomlkit"), get_dependency("cleo")]
E       assert [<Dependency ...ency tomlkit>] == [<Dependency ...endency cleo>]
E         At index 0 diff: <Dependency cleo> != <Dependency tomlkit>
E         Use -v to get more diff

tests/puzzle/test_provider.py:329: AssertionError
__________________ test_search_for_directory_setup_read_setup __________________
[gw3] linux -- Python 3.11.5 /usr/bin/python3.11

provider = <poetry.puzzle.provider.Provider object at 0x7f2c28864110>
mocker = <pytest_mock.plugin.MockerFixture object at 0x7f2c28712e10>
fixture_dir = <function fixture_dir.<locals>._fixture_dir at 0x7f2c2978bc40>

    def test_search_for_directory_setup_read_setup(
        provider: Provider, mocker: MockerFixture, fixture_dir: FixtureDirGetter
    ) -> None:
        mocker.patch("poetry.utils.env.EnvManager.get", return_value=MockEnv())
dependency = DirectoryDependency(
            "demo",
            fixture_dir("git") / "github.com" / "demo" / "demo",
        )
package = provider.search_for_direct_origin_dependency(dependency) assert package.name == "demo"
        assert package.version.text == "0.1.2"
required = [r for r in package.requires if not r.is_optional()]
        optional = [r for r in package.requires if r.is_optional()]
        assert required == [get_dependency("pendulum", ">=1.4.4")]
      assert optional == [get_dependency("tomlkit"), get_dependency("cleo")]
E       assert [<Dependency ...ency tomlkit>] == [<Dependency ...endency cleo>]
E         At index 0 diff: <Dependency cleo> != <Dependency tomlkit>
E         Use -v to get more diff

tests/puzzle/test_provider.py:355: AssertionError
____________ test_search_for_directory_setup_read_setup_with_extras ____________
[gw3] linux -- Python 3.11.5 /usr/bin/python3.11

provider = <poetry.puzzle.provider.Provider object at 0x7f2c28806a90>
mocker = <pytest_mock.plugin.MockerFixture object at 0x7f2c288b6210>
fixture_dir = <function fixture_dir.<locals>._fixture_dir at 0x7f2c2978bc40>

    def test_search_for_directory_setup_read_setup_with_extras(
        provider: Provider, mocker: MockerFixture, fixture_dir: FixtureDirGetter
    ) -> None:
        mocker.patch("poetry.utils.env.EnvManager.get", return_value=MockEnv())
dependency = DirectoryDependency(
            "demo",
            fixture_dir("git") / "github.com" / "demo" / "demo",
            extras=["foo"],
        )
package = provider.search_for_direct_origin_dependency(dependency) assert package.name == "demo"
        assert package.version.text == "0.1.2"
required = [r for r in package.requires if not r.is_optional()]
        optional = [r for r in package.requires if r.is_optional()]
        assert required == [get_dependency("pendulum", ">=1.4.4")]
      assert optional == [get_dependency("tomlkit"), get_dependency("cleo")]
E       assert [<Dependency ...ency tomlkit>] == [<Dependency ...endency cleo>]
E         At index 0 diff: <Dependency cleo> != <Dependency tomlkit>
E         Use -v to get more diff

tests/puzzle/test_provider.py:381: AssertionError
_____________________________ test_load_successful _____________________________
[gw3] linux -- Python 3.11.5 /usr/bin/python3.11

repository = <poetry.repositories.installed_repository.InstalledRepository object 
at 0x7f2c28415fd0>

    def test_load_successful(repository: InstalledRepository) -> None:
      assert len(repository.packages) == len(INSTALLED_RESULTS)
E       AssertionError: assert 14 == 15
E        +  where 14 = len([Package('cleo', '0.7.6'), 
Package('directory-pep-610', '1.2.3', source_type='directory', 
source_url='/path/to/distrib...ckage('file-pep-610', '1.2.3', 
source_type='file', 
source_url='/path/to/distributions/file-pep-610-1.2.3.tar.gz'), ...])
E        +    where [Package('cleo', '0.7.6'), Package('directory-pep-610', '1.2.3', 
source_type='directory', source_url='/path/to/distrib...ckage('file-pep-610', 
'1.2.3', source_type='file', 
source_url='/path/to/distributions/file-pep-610-1.2.3.tar.gz'), ...] = 
<poetry.repositories.installed_repository.InstalledRepository object at 
0x7f2c28415fd0>.packages
E        +  and   15 = len([<importlib.metadata.PathDistribution object at 0x7f2c2a23ee90>, 
<importlib.metadata.PathDistribution object at 0x7f2c...tadata.PathDistribution object at 
0x7f2c29eadfd0>, <importlib.metadata.PathDistribution object at 0x7f2c29eaffd0>, ...])

tests/repositories/test_installed_repository.py:107: AssertionError
---------------------------- Captured stdout setup -----------------------------
Project environment contains an invalid distribution 
(<c1>/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_poetry/build/tests/repositories/fixtures/installed/src/pendulum/pendulum.egg-info</>).
 Consider removing it manually or recreate the environment.
------------------------------ Captured log setup ------------------------------
WARNING  poetry.repositories.installed_repository:installed_repository.py:260 Project environment 
contains an invalid distribution 
(<c1>/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_poetry/build/tests/repositories/fixtures/installed/src/pendulum/pendulum.egg-info</>).
 Consider removing it manually or recreate the environment.
________________ test_load_successful_with_invalid_distribution ________________
[gw3] linux -- Python 3.11.5 /usr/bin/python3.11

caplog = <_pytest.logging.LogCaptureFixture object at 0x7f2c28638450>
mocker = <pytest_mock.plugin.MockerFixture object at 0x7f2c29c533d0>
env = 
MockEnv("/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_poetry/build/tests/repositories/fixtures/installed")
tmp_path = 
PosixPath('/tmp/pytest-of-buildd/pytest-0/popen-gw3/test_load_successful_with_inva0')

    def test_load_successful_with_invalid_distribution(
        caplog: LogCaptureFixture, mocker: MockerFixture, env: MockEnv, 
tmp_path: Path
    ) -> None:
        invalid_dist_info = tmp_path / "site-packages" / 
"invalid-0.1.0.dist-info"
        invalid_dist_info.mkdir(parents=True)
        mocker.patch(
            "poetry.utils._compat.metadata.Distribution.discover",
            return_value=[*INSTALLED_RESULTS, 
metadata.PathDistribution(invalid_dist_info)],
        )
        repository_with_invalid_distribution = InstalledRepository.load(env)
      assert len(repository_with_invalid_distribution.packages) == 
len(INSTALLED_RESULTS)
E       AssertionError: assert 14 == 15
E        +  where 14 = len([Package('cleo', '0.7.6'), 
Package('directory-pep-610', '1.2.3', source_type='directory', 
source_url='/path/to/distrib...ckage('file-pep-610', '1.2.3', 
source_type='file', 
source_url='/path/to/distributions/file-pep-610-1.2.3.tar.gz'), ...])
E        +    where [Package('cleo', '0.7.6'), Package('directory-pep-610', '1.2.3', 
source_type='directory', source_url='/path/to/distrib...ckage('file-pep-610', 
'1.2.3', source_type='file', 
source_url='/path/to/distributions/file-pep-610-1.2.3.tar.gz'), ...] = 
<poetry.repositories.installed_repository.InstalledRepository object at 
0x7f2c288af310>.packages
E        +  and   15 = len([<importlib.metadata.PathDistribution object at 0x7f2c2a23ee90>, 
<importlib.metadata.PathDistribution object at 0x7f2c...tadata.PathDistribution object at 
0x7f2c29eadfd0>, <importlib.metadata.PathDistribution object at 0x7f2c29eaffd0>, ...])

tests/repositories/test_installed_repository.py:121: AssertionError
----------------------------- Captured stdout call -----------------------------
Project environment contains an invalid distribution 
(<c1>/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_poetry/build/tests/repositories/fixtures/installed/src/pendulum/pendulum.egg-info</>).
 Consider removing it manually or recreate the environment.
Project environment contains an invalid distribution 
(<c1>/tmp/pytest-of-buildd/pytest-0/popen-gw3/test_load_successful_with_inva0/site-packages/invalid-0.1.0.dist-info</>).
 Consider removing it manually or recreate the environment.
------------------------------ Captured log call -------------------------------
WARNING  poetry.repositories.installed_repository:installed_repository.py:260 Project environment 
contains an invalid distribution 
(<c1>/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_poetry/build/tests/repositories/fixtures/installed/src/pendulum/pendulum.egg-info</>).
 Consider removing it manually or recreate the environment.
WARNING  poetry.repositories.installed_repository:installed_repository.py:260 Project 
environment contains an invalid distribution 
(<c1>/tmp/pytest-of-buildd/pytest-0/popen-gw3/test_load_successful_with_inva0/site-packages/invalid-0.1.0.dist-info</>).
 Consider removing it manually or recreate the environment.
____________________________ test_load_git_package _____________________________
[gw3] linux -- Python 3.11.5 /usr/bin/python3.11

repository = <poetry.repositories.installed_repository.InstalledRepository object 
at 0x7f2c2a39dc90>

    def test_load_git_package(repository: InstalledRepository) -> None:
        pendulum = get_package_from_repository("pendulum", repository)
      assert pendulum is not None
E       assert None is not None

tests/repositories/test_installed_repository.py:151: AssertionError
---------------------------- Captured stdout setup -----------------------------
Project environment contains an invalid distribution 
(<c1>/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_poetry/build/tests/repositories/fixtures/installed/src/pendulum/pendulum.egg-info</>).
 Consider removing it manually or recreate the environment.
------------------------------ Captured log setup ------------------------------
WARNING  poetry.repositories.installed_repository:installed_repository.py:260 Project environment 
contains an invalid distribution 
(<c1>/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_poetry/build/tests/repositories/fixtures/installed/src/pendulum/pendulum.egg-info</>).
 Consider removing it manually or recreate the environment.
____________________________ test_prepare_directory ____________________________
[gw1] linux -- Python 3.11.5 /usr/bin/python3.11

config = <tests.conftest.Config object at 0x7facc262dd50>
config_cache_dir = 
PosixPath('/tmp/pytest-of-buildd/pytest-0/popen-gw1/test_prepare_directory0/.cache/pypoetry')
artifact_cache = <poetry.utils.cache.ArtifactCache object at 0x7facc0235250>
fixture_dir = <function fixture_dir.<locals>._fixture_dir at 0x7facc27aa160>

    def test_prepare_directory(
        config: Config,
        config_cache_dir: Path,
        artifact_cache: ArtifactCache,
        fixture_dir: FixtureDirGetter,
    ) -> None:
        chef = Chef(
            artifact_cache, EnvManager.get_system_env(), 
Factory.create_pool(config)
        )
        archive = fixture_dir("simple_project").resolve()
      wheel = chef.prepare(archive)

tests/installation/test_chef.py:72:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
poetry/installation/chef.py:99: in prepare
    return self._prepare(archive, destination=destination, editable=editable)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <poetry.installation.chef.Chef object at 0x7facc0251550>
directory = 
PosixPath('/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_poetry/build/tests/fixtures/simple_project')
destination = PosixPath('/tmp/poetry-chef-laf625xy')

    def _prepare(
        self, directory: Path, destination: Path, *, editable: bool = False
    ) -> Path:
        from subprocess import CalledProcessError
with ephemeral_environment(self._env.python) as venv:
            env = IsolatedEnv(venv, self._pool)
            builder = ProjectBuilder(
                directory,
                python_executable=env.executable,
                scripts_dir=env.scripts_dir,
                runner=quiet_subprocess_runner,
            )
            env.install(builder.build_system_requires)
stdout = StringIO()
            error: Exception | None = None
            try:
                with redirect_stdout(stdout):
                    dist_format = "wheel" if not editable else "editable"
                    env.install(
                        builder.build_system_requires
                        | builder.get_requires_for_build(dist_format)
                    )
                    path = Path(
                        builder.build(
                            dist_format,
                            destination.as_posix(),
                        )
                    )
            except BuildBackendException as e:
                message_parts = [str(e)]
                if isinstance(e.exception, CalledProcessError) and (
                    e.exception.stdout is not None or e.exception.stderr is not 
None
                ):
                    message_parts.append(
                        decode(e.exception.stderr)
                        if e.exception.stderr is not None
                        else decode(e.exception.stdout)
                    )
error = ChefBuildError("\n\n".join(message_parts)) if error is not None:
              raise error from None
E               poetry.installation.chef.ChefBuildError: Backend 
'poetry.core.masonry.api' is not available.

poetry/installation/chef.py:147: ChefBuildError
____________________ test_prepare_directory_with_extensions ____________________
[gw1] linux -- Python 3.11.5 /usr/bin/python3.11

config = <tests.conftest.Config object at 0x7facc23e77d0>
config_cache_dir = 
PosixPath('/tmp/pytest-of-buildd/pytest-0/popen-gw1/test_prepare_directory_with_ex0/.cache/pypoetry')
artifact_cache = <poetry.utils.cache.ArtifactCache object at 0x7facc07e5e90>
fixture_dir = <function fixture_dir.<locals>._fixture_dir at 0x7facc27aa160>

    def test_prepare_directory_with_extensions(
        config: Config,
        config_cache_dir: Path,
        artifact_cache: ArtifactCache,
        fixture_dir: FixtureDirGetter,
    ) -> None:
        env = EnvManager.get_system_env()
        chef = Chef(artifact_cache, env, Factory.create_pool(config))
        archive = fixture_dir("extended_with_no_setup").resolve()
      wheel = chef.prepare(archive)

tests/installation/test_chef.py:91:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
poetry/installation/chef.py:99: in prepare
    return self._prepare(archive, destination=destination, editable=editable)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <poetry.installation.chef.Chef object at 0x7facc2cc5690>
directory = 
PosixPath('/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_poetry/build/tests/fixtures/extended_with_no_setup')
destination = PosixPath('/tmp/poetry-chef-_j9stx6t')

    def _prepare(
        self, directory: Path, destination: Path, *, editable: bool = False
    ) -> Path:
        from subprocess import CalledProcessError
with ephemeral_environment(self._env.python) as venv:
            env = IsolatedEnv(venv, self._pool)
            builder = ProjectBuilder(
                directory,
                python_executable=env.executable,
                scripts_dir=env.scripts_dir,
                runner=quiet_subprocess_runner,
            )
            env.install(builder.build_system_requires)
stdout = StringIO()
            error: Exception | None = None
            try:
                with redirect_stdout(stdout):
                    dist_format = "wheel" if not editable else "editable"
                    env.install(
                        builder.build_system_requires
                        | builder.get_requires_for_build(dist_format)
                    )
                    path = Path(
                        builder.build(
                            dist_format,
                            destination.as_posix(),
                        )
                    )
            except BuildBackendException as e:
                message_parts = [str(e)]
                if isinstance(e.exception, CalledProcessError) and (
                    e.exception.stdout is not None or e.exception.stderr is not 
None
                ):
                    message_parts.append(
                        decode(e.exception.stderr)
                        if e.exception.stderr is not None
                        else decode(e.exception.stdout)
                    )
error = ChefBuildError("\n\n".join(message_parts)) if error is not None:
              raise error from None
E               poetry.installation.chef.ChefBuildError: Backend 
'poetry.core.masonry.api' is not available.

poetry/installation/chef.py:147: ChefBuildError
_______________________ test_prepare_directory_editable ________________________
[gw1] linux -- Python 3.11.5 /usr/bin/python3.11

config = <tests.conftest.Config object at 0x7facc023dc10>
config_cache_dir = 
PosixPath('/tmp/pytest-of-buildd/pytest-0/popen-gw1/test_prepare_directory_editabl0/.cache/pypoetry')
artifact_cache = <poetry.utils.cache.ArtifactCache object at 0x7facc0259e10>
fixture_dir = <function fixture_dir.<locals>._fixture_dir at 0x7facc27aa160>

    def test_prepare_directory_editable(
        config: Config,
        config_cache_dir: Path,
        artifact_cache: ArtifactCache,
        fixture_dir: FixtureDirGetter,
    ) -> None:
        chef = Chef(
            artifact_cache, EnvManager.get_system_env(), 
Factory.create_pool(config)
        )
        archive = fixture_dir("simple_project").resolve()
      wheel = chef.prepare(archive, editable=True)

tests/installation/test_chef.py:111:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
poetry/installation/chef.py:99: in prepare
    return self._prepare(archive, destination=destination, editable=editable)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <poetry.installation.chef.Chef object at 0x7facc0540910>
directory = 
PosixPath('/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_poetry/build/tests/fixtures/simple_project')
destination = PosixPath('/tmp/poetry-chef-s0bbbite')

    def _prepare(
        self, directory: Path, destination: Path, *, editable: bool = False
    ) -> Path:
        from subprocess import CalledProcessError
with ephemeral_environment(self._env.python) as venv:
            env = IsolatedEnv(venv, self._pool)
            builder = ProjectBuilder(
                directory,
                python_executable=env.executable,
                scripts_dir=env.scripts_dir,
                runner=quiet_subprocess_runner,
            )
            env.install(builder.build_system_requires)
stdout = StringIO()
            error: Exception | None = None
            try:
                with redirect_stdout(stdout):
                    dist_format = "wheel" if not editable else "editable"
                    env.install(
                        builder.build_system_requires
                        | builder.get_requires_for_build(dist_format)
                    )
                    path = Path(
                        builder.build(
                            dist_format,
                            destination.as_posix(),
                        )
                    )
            except BuildBackendException as e:
                message_parts = [str(e)]
                if isinstance(e.exception, CalledProcessError) and (
                    e.exception.stdout is not None or e.exception.stderr is not 
None
                ):
                    message_parts.append(
                        decode(e.exception.stderr)
                        if e.exception.stderr is not None
                        else decode(e.exception.stdout)
                    )
error = ChefBuildError("\n\n".join(message_parts)) if error is not None:
              raise error from None
E               poetry.installation.chef.ChefBuildError: Backend 
'poetry.core.masonry.api' is not available.

poetry/installation/chef.py:147: ChefBuildError
_____________________ test_installer_with_pypi_repository ______________________
[gw1] linux -- Python 3.11.5 /usr/bin/python3.11

package = Package('root', '1.0')
locker = <tests.installation.test_installer.Locker object at 0x7facc0448cd0>
installed = <tests.installation.test_installer.CustomInstalledRepository object at 
0x7facc0449290>
config = <tests.conftest.Config object at 0x7facc0301ed0>
env = 
NullEnv("/tmp/pytest-of-buildd/pytest-0/popen-gw1/test_installer_with_pypi_repos0")

    def test_installer_with_pypi_repository(
        package: ProjectPackage,
        locker: Locker,
        installed: CustomInstalledRepository,
        config: Config,
        env: NullEnv,
    ) -> None:
        pool = RepositoryPool()
        pool.add_repository(MockRepository())
installer = Installer(
            NullIO(), env, package, locker, pool, config, installed=installed
        )
package.python_versions = ">=3.7"
        package.add_dependency(Factory.create_dependency("pytest", "^3.5", 
groups=["dev"]))
        result = installer.run()
      assert result == 0
E       assert 1 == 0

tests/installation/test_installer.py:1172: AssertionError
------------------------------ Captured log call -------------------------------
DEBUG    poetry.repositories.repository.MockRepository:repository.py:104 <c1>Source 
(PyPI):</c1> 1 packages found for pytest >=3.5,<4.0
DEBUG    poetry.repositories.repository.MockRepository:repository.py:104 <c1>Source 
(PyPI):</c1> Getting info for pytest (3.5.0) from PyPI
DEBUG    poetry.repositories.repository.MockRepository:repository.py:104 <c1>Source 
(PyPI):</c1> 1 packages found for colorama *
DEBUG    poetry.repositories.repository.MockRepository:repository.py:104 <c1>Source 
(PyPI):</c1> 1 packages found for pluggy >=0.5,<0.7
DEBUG    poetry.repositories.repository.MockRepository:repository.py:104 <c1>Source 
(PyPI):</c1> 1 packages found for more-itertools >=4.0.0
DEBUG    poetry.repositories.repository.MockRepository:repository.py:104 <c1>Source 
(PyPI):</c1> 1 packages found for attrs >=17.4.0
DEBUG    poetry.repositories.repository.MockRepository:repository.py:104 <c1>Source 
(PyPI):</c1> 2 packages found for setuptools *
DEBUG    poetry.repositories.repository.MockRepository:repository.py:104 <c1>Source 
(PyPI):</c1> 1 packages found for six >=1.10.0
DEBUG    poetry.repositories.repository.MockRepository:repository.py:104 <c1>Source 
(PyPI):</c1> 1 packages found for py >=1.5.0
DEBUG    poetry.repositories.repository.MockRepository:repository.py:104 <c1>Source 
(PyPI):</c1> Getting info for pluggy (0.6.0) from PyPI
DEBUG    poetry.repositories.repository.MockRepository:repository.py:104 <c1>Source 
(PyPI):</c1> Getting info for more-itertools (4.1.0) from PyPI
DEBUG    poetry.repositories.repository.MockRepository:repository.py:104 <c1>Source 
(PyPI):</c1> Getting info for attrs (17.4.0) from PyPI
DEBUG    poetry.repositories.repository.MockRepository:repository.py:104 <c1>Source 
(PyPI):</c1> Getting info for six (1.11.0) from PyPI
DEBUG    poetry.repositories.repository.MockRepository:repository.py:104 <c1>Source 
(PyPI):</c1> Getting info for py (1.5.3) from PyPI
DEBUG    poetry.repositories.repository.MockRepository:repository.py:104 <c1>Source 
(PyPI):</c1> Getting info for setuptools (67.6.1) from PyPI
DEBUG    poetry.repositories.repository.MockRepository:repository.py:104 <c1>Source 
(PyPI):</c1> Getting info for colorama (0.3.9) from PyPI
DEBUG    poetry.repositories.repository.Repository:repository.py:104 <c1>Source 
(poetry-repo):</c1> 1 packages found for pytest >=3.5,<4.0
DEBUG    poetry.repositories.repository.Repository:repository.py:104 <c1>Source 
(poetry-repo):</c1> 1 packages found for pluggy >=0.5,<0.7
DEBUG    poetry.repositories.repository.Repository:repository.py:104 <c1>Source 
(poetry-repo):</c1> 1 packages found for more-itertools >=4.0.0
DEBUG    poetry.repositories.repository.Repository:repository.py:104 <c1>Source 
(poetry-repo):</c1> 1 packages found for attrs >=17.4.0
DEBUG    poetry.repositories.repository.Repository:repository.py:104 <c1>Source 
(poetry-repo):</c1> 1 packages found for setuptools *
DEBUG    poetry.repositories.repository.Repository:repository.py:104 <c1>Source 
(poetry-repo):</c1> 1 packages found for six >=1.10.0
DEBUG    poetry.repositories.repository.Repository:repository.py:104 <c1>Source 
(poetry-repo):</c1> 1 packages found for py >=1.5.0
DEBUG    poetry.utils.password_manager:password_manager.py:121 No suitable 
keyring backend found
DEBUG    poetry.utils.password_manager:password_manager.py:141 No suitable 
keyring backends were found
DEBUG    poetry.utils.password_manager:password_manager.py:155 <warning>Keyring is 
not available, credentials will be stored and retrieved from configuration files as 
plaintext.</>
DEBUG    poetry.utils.authenticator:authenticator.py:184 Creating new session 
for files.pythonhosted.org
DEBUG    urllib3.connectionpool:connectionpool.py:1017 Starting new HTTPS 
connection (1): files.pythonhosted.org:443
DEBUG    poetry.utils.authenticator:authenticator.py:273 Retrying HTTP request 
in 0.5 seconds.
DEBUG    urllib3.connectionpool:connectionpool.py:1017 Starting new HTTPS 
connection (2): files.pythonhosted.org:443
DEBUG    poetry.utils.authenticator:authenticator.py:273 Retrying HTTP request 
in 1.0 seconds.
DEBUG    urllib3.connectionpool:connectionpool.py:1017 Starting new HTTPS 
connection (3): files.pythonhosted.org:443
DEBUG    poetry.utils.authenticator:authenticator.py:273 Retrying HTTP request 
in 1.5 seconds.
DEBUG    urllib3.connectionpool:connectionpool.py:1017 Starting new HTTPS 
connection (4): files.pythonhosted.org:443
DEBUG    poetry.utils.authenticator:authenticator.py:273 Retrying HTTP request 
in 2.0 seconds.
DEBUG    urllib3.connectionpool:connectionpool.py:1017 Starting new HTTPS 
connection (5): files.pythonhosted.org:443
DEBUG    poetry.utils.authenticator:authenticator.py:273 Retrying HTTP request 
in 2.5 seconds.
DEBUG    urllib3.connectionpool:connectionpool.py:1017 Starting new HTTPS 
connection (6): files.pythonhosted.org:443
=========================== short test summary info ============================
FAILED tests/inspection/test_info.py::test_info_from_requires_txt - assert No...
FAILED 
tests/installation/test_installer.py::test_run_installs_with_local_setuptools_directory
FAILED tests/puzzle/test_provider.py::test_search_for_vcs_setup_egg_info - as...
FAILED 
tests/puzzle/test_provider.py::test_search_for_vcs_setup_egg_info_with_extras
FAILED tests/puzzle/test_provider.py::test_search_for_vcs_read_setup - assert...
FAILED tests/puzzle/test_provider.py::test_search_for_vcs_read_setup_with_extras
FAILED 
tests/puzzle/test_provider.py::test_search_for_directory_setup_egg_info[demo]
FAILED 
tests/puzzle/test_provider.py::test_search_for_directory_setup_egg_info[non-canonical-name]
FAILED 
tests/puzzle/test_provider.py::test_search_for_directory_setup_egg_info_with_extras
FAILED 
tests/puzzle/test_provider.py::test_search_for_directory_setup_with_base[demo]
FAILED 
tests/puzzle/test_provider.py::test_search_for_directory_setup_with_base[non-canonical-name]
FAILED tests/puzzle/test_provider.py::test_search_for_directory_setup_read_setup
FAILED 
tests/puzzle/test_provider.py::test_search_for_directory_setup_read_setup_with_extras
FAILED tests/repositories/test_installed_repository.py::test_load_successful
FAILED 
tests/repositories/test_installed_repository.py::test_load_successful_with_invalid_distribution
FAILED tests/repositories/test_installed_repository.py::test_load_git_package
FAILED tests/installation/test_chef.py::test_prepare_directory - poetry.insta...
FAILED tests/installation/test_chef.py::test_prepare_directory_with_extensions
FAILED tests/installation/test_chef.py::test_prepare_directory_editable - poe...
FAILED tests/installation/test_installer.py::test_installer_with_pypi_repository
============ 20 failed, 1147 passed, 4 skipped in 65.00s (0:01:04) =============
E: pybuild pybuild:395: test: plugin pyproject failed with: exit code=1: cd 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_poetry/build; python3.11 -m pytest 
--ignore=tests/console/commands/env/test_list.py 
--ignore=tests/console/commands/env/test_remove.py 
--ignore=tests/console/commands/env/test_use.py --ignore=tests/utils/test_env.py 
--ignore=tests/config/test_config.py --ignore=tests/utils/test_helpers.py -k 'not 
test_self_update_should_install_all_necessary_elements and not 
test_add_file_constraint_sdist and not test_add_file_constraint_sdist_old_installer and not 
test_builder_setup_generation_runs_with_pip_editable and not test_publish_dry_run and not 
test_info_from_sdist and not test_installer_can_install_dependencies_from_forced_source and 
not test_search_for_file_sdist and not test_search_for_file_sdist_with_extras and not 
test_solver_can_resolve_sdist_dependencies and not 
test_solver_can_resolve_sdist_dependencies_with_extras and not 
test_solver_chooses_from_correct_repository_if_forced and not 
test_solver_chooses_from_correct_repository_if_forced_and_transitive_dependency and not 
test_solver_does_not_choose_from_secondary_repository_by_default and not 
test_solver_chooses_from_secondary_if_explicit and not 
test_get_package_information_fallback_read_setup and not 
test_get_package_information_skips_dependencies_with_invalid_constraints and not 
test_get_package_retrieves_packages_with_no_hashes and not 
test_fallback_can_read_setup_to_get_dependencies and not 
test_exporter_can_export_requirements_txt_with_file_packages and not 
test_exporter_can_export_requirements_txt_with_file_packages_and_markers and not 
test_lock_no_update and not test_locker_dumps_dependency_information_correctly and not 
test_package_partial_yank and not test_run_installs_with_same_version_url_files and not 
test_env_info_displays_complete_info and not test_skip_existing_output and not 
test_installer_should_use_the_locked_version_of_git_dependencies_with_extras and not 
test_installer_should_use_the_locked_version_of_git_dependencies_without_reference and not 
test_installer_uses_prereleases_if_they_are_compatible and not 
test_requirement_git_subdirectory and not test_check_valid and not test_check_invalid and 
not test_packages_property_returns_empty_list and not test_parse_dependency_specification 
and not test_info_setup_missing_mandatory_should_trigger_pep517 and not 
test_uninstall_git_package_nspkg_pth_cleanup and not 
test_executor_should_write_pep610_url_references_for_directories and not 
test_executor_should_write_pep610_url_references_for_git and not 
test_executor_should_write_pep610_url_references_for_git_with_subdirectories and not 
test_executor_should_write_pep610_url_references_for_git_with_subdirectories and not 
test_executor_should_write_pep610_url_references_for_non_wheel_urls and not 
test_executor_should_write_pep610_url_references_for_non_wheel_files and not 
test_prepare_sdist and not test_shell'
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.11 
returned exit code 13
make: *** [debian/rules:69: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
Build finished at 2023-08-27T08:57:30Z

Finished
--------


FWIW (I didn't investigate all the failures)
These additions/changes in rules file works (attached)

G.
diff -Nru poetry-1.5.1+dfsg/debian/rules poetry-1.5.1+dfsg/debian/rules
--- poetry-1.5.1+dfsg/debian/rules      2023-08-08 00:08:31.000000000 +0200
+++ poetry-1.5.1+dfsg/debian/rules      2023-08-28 10:03:32.000000000 +0200
@@ -54,8 +54,25 @@
                        and not 
test_executor_should_write_pep610_url_references_for_non_wheel_urls \
                        and not 
test_executor_should_write_pep610_url_references_for_non_wheel_files \
                        and not test_prepare_sdist \
-                       and not test_shell'
-
+                       and not test_shell \
+                       and not test_info_from_requires_txt \
+                       and not 
test_run_installs_with_local_setuptools_directory \
+                       and not test_search_for_vcs_setup_egg_info \
+                       and not test_search_for_vcs_setup_egg_info_with_extras \
+                       and not test_search_for_vcs_read_setup \
+                       and not test_search_for_vcs_read_setup_with_extras \
+                       and not test_search_for_directory_setup_egg_info \
+                       and not 
test_search_for_directory_setup_egg_info_with_extras \
+                       and not test_search_for_directory_setup_with_base \
+                       and not test_search_for_directory_setup_read_setup \
+                       and not 
test_search_for_directory_setup_read_setup_with_extras \
+                       and not test_load_successful \
+                       and not test_load_successful_with_invalid_distribution \
+                       and not test_load_git_package \
+                       and not test_prepare_directory \
+                       and not test_prepare_directory_with_extensions \
+                       and not test_prepare_directory_editable \
+                       and not test_installer_with_pypi_repository'
 
 export http_proxy=
 export https_proxy=

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


--- End Message ---
--- Begin Message ---
Source: poetry
Source-Version: 1.6.1+dfsg-2
Done: Emmanuel Arias <eam...@debian.org>

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 1050...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Emmanuel Arias <eam...@debian.org> (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 ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Tue, 12 Sep 2023 22:01:38 -0300
Source: poetry
Architecture: source
Version: 1.6.1+dfsg-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+pyt...@tracker.debian.org>
Changed-By: Emmanuel Arias <eam...@debian.org>
Closes: 1050688
Changes:
 poetry (1.6.1+dfsg-2) unstable; urgency=medium
 .
   * d/rules: Skip the next tests that use internet (Closes: #1050688):
    - test_installer_with_pypi_repository
    - test_prepare_directory_editable
    - test_prepare_directory
    - test_prepare_directory_with_extensions
Checksums-Sha1:
 f2833cafa4cb706d0886501d6287d65e660d07e1 3263 poetry_1.6.1+dfsg-2.dsc
 bfca794b0acf00d93df8974b5739d79749000768 6724 poetry_1.6.1+dfsg-2.debian.tar.xz
 600ec274c82738e8f345d3212ef2a1140e5fa9a0 11057 
poetry_1.6.1+dfsg-2_amd64.buildinfo
Checksums-Sha256:
 d63916a058085dabb083406da8fe8d3104af6db9208b371dc884bf22d68b7e77 3263 
poetry_1.6.1+dfsg-2.dsc
 1db69926bad56ff5d78e9a4f9f8abee6087a6e3f883cb42746859473ab60fc54 6724 
poetry_1.6.1+dfsg-2.debian.tar.xz
 fc3fd927639209ff7b16b040307698601725155a83f01a3c45ae8dd06e314593 11057 
poetry_1.6.1+dfsg-2_amd64.buildinfo
Files:
 85d9cd941381f81fad7f3146fb6d247b 3263 python optional poetry_1.6.1+dfsg-2.dsc
 75aff804e002745ed1dcdc2a84e827cc 6724 python optional 
poetry_1.6.1+dfsg-2.debian.tar.xz
 417184feccb30f89d19e3645563dedf3 11057 python optional 
poetry_1.6.1+dfsg-2_amd64.buildinfo

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

iQJGBAEBCgAwFiEEE3lnVbvHK7ir4q61+p3sXeEcY/EFAmUBDtcSHGVhbWFudUBk
ZWJpYW4ub3JnAAoJEPqd7F3hHGPxz0IQAJGMM8gVS4mCc9sPdMGAAB5EtXTay3wx
Aypmc31VGnNrHhWbv9cy9tPLacYR7z16aF+LcFqk0Bc6uGegI7HdDUJA6g6yQCj7
hKQNJyDKSs07dcRwsY4Oo0Be1KvCspTwBoEr9qHVP8IkD1qgXbDdE4qg7O04vs6r
Szm63z2TvG53Y/7j6lZwbb4YRfXG82g9+wVTaI6WG+tyt5EhAHLaewi3HwRklLIo
jvkS600muz66yxwPXwrXySJXpbtoF4z90CwuTnegcbOGWdp/uVA26tHlFHN274LG
3jkG+Szv/FCa9+HjUim5QygCPGliBmgG9LQd8CS2TEyB12kRwrIQ9e+spi9l1FhK
zfcn3psXHJjtZhG+4jIk5cgMqMmk5Ezsj2AKLmMb50u4BqdvksQWiFLvzdal4Kee
AWqPxaNNrvNyUDFOsNHUO7WaxrwHn2DKvhWbWEDYSgC/oKr9kyOKac9M5LQqyNPZ
bo3O3pUz/6nyx2BvpLeiRxPW9YVTrg5/Y00ycV5u4664MvT1WouwPsHenuI/fwh5
rmccZkdkrs0UPHa8smeJyA2sFFMZ/sBzJx5Z9NiggnQKxJ1ZXZLb7gC1tnBfHJaP
pwG0ugEBulODy5TWCooAP4ceqqxk9x2rpf5+WFhIxeRNXH+0aS7+proljThO5Y/H
hTabBKV0GMAQ
=ialR
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to