pulumi/sdk/python
Justin Van Patten b77ec919d4
Install and use dependencies automatically for new Python projects (#4775)
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
..
cmd Install and use dependencies automatically for new Python projects (#4775) 2020-06-09 16:42:53 -07:00
dist Install and use dependencies automatically for new Python projects (#4775) 2020-06-09 16:42:53 -07:00
lib Export the CustomTimeouts class (#4747) 2020-06-03 15:36:44 -07:00
.gitignore add .venv/ to python .gitignore to ignore when using PIPENV_VENV_IN_PROJECT=1 2019-06-19 12:43:04 -07:00
.pylintrc Make 'ResourceOptions.merge' static so downstream clients don't have to manually handle None cases. (#3072) 2019-08-14 15:55:03 -07:00
Makefile Upgrade to Go 1.14.x (#4697) 2020-05-28 12:01:33 +01:00
Pipfile Enable mypy (#3758) 2020-01-17 14:45:08 -08:00
Pipfile.lock Enable mypy (#3758) 2020-01-17 14:45:08 -08:00
mypy.ini Allow oversize protocol buffers (#3895) 2020-02-10 15:30:42 -07:00
python.go Install and use dependencies automatically for new Python projects (#4775) 2020-06-09 16:42:53 -07:00
python_test.go Install and use dependencies automatically for new Python projects (#4775) 2020-06-09 16:42:53 -07:00