Add logic to parse pulumi venv (#4994)

This commit is contained in:
Gabriel Diaz 2020-07-14 07:04:01 -05:00 committed by GitHub
parent f364311064
commit 4316800f2f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 3 deletions

View file

@ -6,6 +6,9 @@ CHANGELOG
- Add support for streamInvoke during update
[#4990](https://github.com/pulumi/pulumi/pull/4990)
- Add logic to parce pulumi venv on github action
[#4994](https://github.com/pulumi/pulumi/pull/4994)
## 2.6.1 (2020-07-09)
- Fix a panic in the display during CLI operations

View file

@ -118,7 +118,16 @@ fi
# If the user is running the Python SDK, we will need to install their requirements as well.
if [ -e requirements.txt ]; then
# Check if should use venv
PULUMI_VENV=$(cat Pulumi.yaml | grep "virtualenv:" | cut -d':' -f2)
if [ -z $PULUMI_VENV ]; then
python3 -m venv $PULUMI_VENV
source $PULUMI_VENV/bin/activate
pip3 install -r requirements.txt
deactivate
else
pip3 install -r requirements.txt
fi
fi
# Now just pass along all arguments to the Pulumi CLI, sending the output to a file for