Hi everybody :slightly_smiling_face: I’m using Poe...
# pulumi-deployments
w
Hi everybody 🙂 I’m using Poetry for Python dependency management and the files (pyproject.toml, poetry.lock) are located in the root of my repo. I’ve created subfolders with different Pulumi projects and configured one of them for the deployment. The workflow starts, but in “Download dependencies” I see: Error: python projects without a
virtualenv
project configuration are not yet supported Are there any plans to support this usecase in the future?
l
@wide-cat-87818 have a look at the
Things to know
to combine Poetry with Pulumi. The example project is a monorepo with multiple projects, but the most important thing for you is the
in-project = true
setting which creates the virtual environment in the Pulumi project folder. If you then set the
virtualenv
path as a subproperty of the
runtime
key, I hope this gets you passed the
Download Dependencies
phase. You could run Poetry commands as a pre-command then. https://github.com/ringods/pulumi-python-poetry-monorepo#things-to-know https://www.pulumi.com/docs/reference/pulumi-yaml/#runtime-options
l
@wide-cat-87818 We have an issue open to disable automatic dependency installation, in which case you could customize the behavior via pre-run commands. https://github.com/pulumi/service-requests/issues/126
If you +1 that issue you'll get updates when we fix it (hopefully in the next week or two)
w
Thanks for the fast response @limited-rainbow-51650 @lemon-agent-27707.
r
Hey @wide-cat-87818 we just shipped this change! Take it for a spin and let us know what you think. https://github.com/pulumi/service-requests/issues/126#issuecomment-1314623269
w
@red-match-15116 Thanks for that. 🙂 I will give it a try the next days.
155 Views