https://pulumi.com logo
#pulumi-deployments
Title
# pulumi-deployments
w

wide-cat-87818

11/09/2022, 2:35 PM
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

limited-rainbow-51650

11/09/2022, 2:45 PM
@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

lemon-agent-27707

11/09/2022, 2:49 PM
@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

wide-cat-87818

11/09/2022, 2:52 PM
Thanks for the fast response @limited-rainbow-51650 @lemon-agent-27707.
r

red-match-15116

11/15/2022, 1:15 AM
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

wide-cat-87818

11/17/2022, 7:29 AM
@red-match-15116 Thanks for that. 🙂 I will give it a try the next days.
111 Views