edgetest_conda package

Submodules

Plugin for environment creation through conda.

edgetest_conda.plugin.addoption(schema: Schema)[source]

Add an environment-level variable for conda installation options.

Parameters:

schema (Schema) – The schema class.

edgetest_conda.plugin.create_environment(basedir: Path, envname: str, conf: Dict)[source]

Create the conda environment.

Parameters:
  • basedir (Path) – The base directory location for the environment.

  • envname (str) – The name of the virtual environment.

  • conf (dict) – The configuration dictionary for the environment. We will look for conda_install.

Returns:

For firstresult mark compatability in Pluggy https://pluggy.readthedocs.io/en/stable/index.html#first-result-only

Return type:

bool

Raises:

RuntimeError – Error raised if the environment cannot be created.

edgetest_conda.plugin.run_update(basedir: Path, envname: str, upgrade: List, conf: Dict)[source]

Update packages from upgrade list.

Parameters:
  • basedir (Path) – The base directory location for the environment.

  • envname (str) – The name of the virtual environment.

  • upgrade (list) – The list of packages to upgrade

  • conf (dict) – The configuration dictionary for the environment. We will look for update_with_conda.

Returns:

For firstresult mark compatability in Pluggy https://pluggy.readthedocs.io/en/stable/index.html#first-result-only

Return type:

bool

Raises:

RuntimeError – Error raised if the packages cannot be updated.

Module contents

Conda edgetest plugin <https://github.com/capitalone/edgetest-conda>