0
votes

The dependency resolution of my Poetry environments frequently takes >20min. My personal best is 6hrs!!! I'm clearly doing something wrong. Running poetry lock -vvv I notice various versions of sdist get downloaded this takes several seconds each time. Additionally, I see to following messages a repeating enter image description here

or

enter image description here

It seems this is where the resolution takes the longest. I am using a private PyPi server as my secondary


[[tool.poetry.source]]
name = "private_pypi"
url = "https://pypi.private_pypi.com.au/simple"
secondary = true

[[tool.poetry.source]]
name = "pypi-public"
url = "https://pypi.org/simple/"

I also see a message earlier in the logs Private PyPi: Response url ... differs from request url ... not sure if this is related.

There is an extensive thread in the Poetry Git issue 2094 that seems to indicate many of the resolution woes are out of Poetry's hands. Not sure if this is the case for me.

I'm simply looking for some next steps to try and speed things up.

Will nailing down versions in my pyproject.toml (ie: using == not ^ or >=) help? Is there something immediately obvious that I'm doing wrong? How many goats should I sacrifice?