Environment YAML File Setup

In order to ensure control over which packages are created, PyEnvBuilder requires an YAML file that defines a certain environment. Only packages from the conda-forge mirror and PyPI are accepted since those two combined cover most if not all packages widely available to Python. Custom packages should use PYTHONPATH or should be added to one of the two locations:

Note

If the code for a certain python package is available at GitHub but not yet at PyPI or conda-forge, it can still be installed via pip using the proper URL.


YAML File

YAML File Example

YAML file example

The table below explains the attributes of the YAML file:

Attributes

Description

Example

Type

Required

name

name of the environment

python3.7env

string

Yes

version

version of the environment

v1.0 or “1.0.0”

string

Yes

conda_packages

packages to be installed through conda-forge channel

- python=3.7

array

Yes

pip_packages

packages to be installed through pip

- pydm

array

No

tests

python scripts to test the environment

- python test.py

array

No