Skip to content

Commit 0b3e53c

Browse files
Jack Desertradoering
Jack Desert
authored andcommitted
Offer workaround for the cases where Poetry is downloading
several versions of a package that does not have its metada correctly declared. (cherry picked from commit 40061f9)
1 parent c45c94e commit 0b3e53c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

docs/faq.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,14 @@ and, as such, they are not available via the PyPI JSON API. At this point, Poetr
2222
but to download the packages and inspect them to get the necessary information. This is an expensive
2323
operation, both in bandwidth and time, which is why it seems this is a long process.
2424

25-
At the moment there is no way around it.
25+
At the moment there is no way around it. However, if you notice that Poetry
26+
is downloading many versions of a single package, you can lessen the workload
27+
by constraining that one package in your pyproject.toml more narrowly. That way
28+
Poetry does not have to sift through so many versions of it, which may speed up
29+
the locking process considerably in some cases.
2630

2731
{{% note %}}
28-
Once Poetry has cached the releases' information, the dependency resolution process
32+
Once Poetry has cached the releases' information on your machine, the dependency resolution process
2933
will be much faster.
3034
{{% /note %}}
3135

0 commit comments

Comments
 (0)