sparse-intern-71089
09/29/2022, 6:03 PMquick-wolf-8403
09/29/2022, 6:14 PMpulumi up --yes --skip-preview --parallel 2147483647 --exec-agent pulumi/actions@v3 --color auto --exec-kind auto.local --stack nocap/dev --non-interactive
(for example), and that fails due to not running in the env with the deps.
When running pytest later, I just run poetry run pytest
to make sure it's using the corrent env.
I could also run poetry shell
first to have future command run in that env.
I assume this is also a problem for Pipenv.quick-wolf-8403
09/29/2022, 6:59 PMpip
if you install in a virtualenv. The example uses pip
to install to the system, which is fine for a disposable runner...
Maybe I can just turn it off, like with pipenv install --system
.kind-jelly-61624
09/29/2022, 7:08 PMlimited-rainbow-51650
09/30/2022, 7:41 AMpoetry config virtualenvs.in-project true
which creates the virtual environment folder within the project setup. With that in place, you can use Poetry to manage dependencies, then run Pulumi with the venv
folder configured in Pulumi.yaml
.quick-wolf-8403
09/30/2022, 3:15 PMruntime:
name: python
options:
virtualenv: venv
And ran poetry config virtualenvs.in-project true --local
(just setting it for this project) and made sure poetry.toml
was added to source control.