From 09ce0d8b0fa4b372f2b6e209d3d5bbac01d7c0fe Mon Sep 17 00:00:00 2001 From: Jack Desert Date: Mon, 6 Mar 2023 11:45:40 -0500 Subject: [PATCH] Offer workaround for the cases where Poetry is downloading several versions of a package that does not have its metada correctly declared. --- docs/faq.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/faq.md b/docs/faq.md index 5280072037b..2a2051d294a 100644 --- a/docs/faq.md +++ b/docs/faq.md @@ -22,10 +22,14 @@ and, as such, they are not available via the PyPI JSON API. At this point, Poetr but to download the packages and inspect them to get the necessary information. This is an expensive operation, both in bandwidth and time, which is why it seems this is a long process. -At the moment there is no way around it. +At the moment there is no way around it. However, if you notice that Poetry +is downloading many versions of a single package, you can lessen the workload +by constraining that one package in your pyproject.toml more narrowly. That way +Poetry does not have to sift through so many versions of it, which may speed up +the locking process considerably in some cases. {{% note %}} -Once Poetry has cached the releases' information, the dependency resolution process +Once Poetry has cached the releases' information on your machine, the dependency resolution process will be much faster. {{% /note %}}