Python Pulumi: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 15: Line 15:
</syntaxhighlight>
</syntaxhighlight>
<code>virtualenv</code> is the path, relative to the project directory, to the virtual environment to use.
<code>virtualenv</code> is the path, relative to the project directory, to the virtual environment to use.
=Pulumi Python Packges=
{{External|https://www.pulumi.com/docs/reference/pkg/}}

Revision as of 04:32, 11 January 2022

External

Internal

Pulumi Python SDK

https://www.pulumi.com/docs/reference/pkg/python/pulumi/

The SDK is available as a pip package.

Python Pulumi and Virtual Environments

A new Python project created with pulumi new will have a virtual environment created in a venv directory with required dependencies from requirements.txt installed in it. This behavior is controlled by the virtualenv runtime option in Pulumi.yaml:

runtime:
  name: python
  options:
    virtualenv: venv

virtualenv is the path, relative to the project directory, to the virtual environment to use.

Pulumi Python Packges

https://www.pulumi.com/docs/reference/pkg/