For people struggling with a monorepo containing P...
# python
l
For people struggling with a monorepo containing Pulumi code in Python, with Poetry as the dependency manager, I have good news: here is a working setup! https://github.com/ringods/pulumi-python-poetry-monorepo
g
I am curious why would you want to create multiple virtual environments? I have multiple pulumi projects all using 1 venv and I can easily import the code between projects. Because from your example you have to maintain dependencies for all projects separately which can bring a lot of management overhead
l
@great-sunset-355 this was an investigation regarding a customer question, for which I share the results. If you are on Github, configure Dependabot to keep your dependencies fresh, so isn’t that much management overhead. https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file#package-ecosystem A selfhosted alternative to Dependabot is Renovatebot
g
I see, my experience is that multiple working with multiple venvs in python results in poor developer experience because IDEs cannot load dependencies correctly. I noticed you solved that with VSCode multi-root project. I had some troubles with multi-root projects in VSCode 😕 Anyway, it is an interesting approach. Thank you for mentioning renovatebot I did not know about it, I'm actually looking for an alternative. I found this project https://gitlab.com/dependabot-gitlab/dependabot Now I have something to compare it to.