Commit Graph

5 Commits

Author SHA1 Message Date
Justin Van Patten 4c88e215ce
Respect PULUMI_PYTHON_CMD in scripts ()
If `PULUMI_PYTHON_CMD` is set, use it instead of running `python` directly.
2020-11-18 19:08:41 -08:00
Justin Van Patten b364296521
Python: Improved error message when `virtualenv` doesn't exist () 2020-07-28 13:28:14 -07:00
Justin Van Patten b77ec919d4
Install and use dependencies automatically for new Python projects ()
Automatically create a virtual environment and install dependencies in it with `pulumi new` and `pulumi policy new` for Python templates.

This will save a new `virtualenv` runtime option in `Pulumi.yaml` (`PulumiPolicy.yaml` for policy packs):

```yaml
runtime:
  name: python
  options:
    virtualenv: venv
```

`virtualenv` is the path to a virtual environment that Pulumi will use when running `python` commands.

Existing projects are unaffected and can opt-in to using this by setting `virtualenv`, otherwise, they'll continue to work as-is.
2020-06-09 16:42:53 -07:00
Justin Van Patten 6b0a845cc1
Support publishing Python policy packs ()
Adds support for publishing Python policy packs to the service, and downloading/using such policy packs when applied to stacks in an organization.
2020-05-22 15:01:15 -07:00
Justin Van Patten 24e804bbe8
Support for running Python policy packs ()
These changes enable running policy packs written in Python.
2020-03-18 16:15:57 -07:00