laurent
02/22/2021, 10:08 PMpoetry add meltano on a clean project (basically, create a directory, cd into it, poetry init with no dependencies, then poetry add meltano ). The dependency resolution took 5191 seconds (yes, 1.5 hrs!). And no, this is not on a 56k modem 😉 I went through poetry's issues, particularly https://github.com/python-poetry/poetry/issues/2094 where they say it's caused by the package not defining dependencies correctly. I'd like to understand what is going on here.
As I understand it, meltano has been using poetry for dependency management since December, and I see a poetry.lock in the repo. So from what I understand, it's all clear here. That said, when I look at the logs, I see poetry trying pretty much every version of boto3 under the sun, and I'm not sure why.
Has anyone else hit this problem (namely, insanely slow dependency resolution)?douwe_maan
02/22/2021, 10:51 PMmeltano before, only pip and pipx (see https://gitlab.com/meltano/meltano/-/merge_requests/1960), since Poetry is most useful when you have to manage tons of dependencies, while Meltano typically lives by itself in a venv and is used like an application rather than a library as part of a bigger projectdouwe_maan
02/22/2021, 10:52 PMpoetry install inside the Meltano project (https://meltano.com/docs/contributor-guide.html#setting-up-your-environment) was much faster? Since that definitely uses poetry.locklaurent
02/22/2021, 11:17 PMlaurent
02/22/2021, 11:18 PMdouwe_maan
02/22/2021, 11:18 PMlaurent
02/22/2021, 11:20 PMdouwe_maan
02/22/2021, 11:23 PMmeltano executable and not about being able to reference the meltano module from your own source code, it doesn't need to be in your project like pandas woulddouwe_maan
02/22/2021, 11:25 PMlaurent
02/22/2021, 11:29 PMlaurent
02/22/2021, 11:30 PMpoetry install took like 2 minutes, as it's installing from the lockfiledouwe_maan
02/22/2021, 11:30 PMpoetry.lock when you're adding meltano to an existing project, since it needs to check all of the dependencies against the packages already installed in the virtual environment, while poetry install can assume there's nothing in the virtual environment yetlaurent
02/22/2021, 11:32 PM