From 3b7ef12a5469b1956cb6682996afdeb66ea4e598 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Randy=20D=C3=B6ring?= <30527984+radoering@users.noreply.github.com> Date: Thu, 31 Oct 2024 16:24:21 +0100 Subject: [PATCH] fix: do not ignore `installer.max-workers` for implicit PyPI source (#9815) --- src/poetry/factory.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/poetry/factory.py b/src/poetry/factory.py index 18e7cdc1df5..e4807aa00c2 100644 --- a/src/poetry/factory.py +++ b/src/poetry/factory.py @@ -154,16 +154,16 @@ def create_pool( if repository.name.lower() == "pypi": explicit_pypi = True - # Only add PyPI if no default repository is configured + # Only add PyPI if no primary repository is configured if not explicit_pypi: if pool.has_primary_repositories(): if io.is_debug(): io.write_line("Deactivating the PyPI repository") else: - from poetry.repositories.pypi_repository import PyPiRepository - pool.add_repository( - PyPiRepository(disable_cache=disable_cache), + cls.create_package_source( + {"name": "pypi"}, config, disable_cache=disable_cache + ), priority=Priority.PRIMARY, )