yaml_file
#
Define YAML spec.
Classes#
EXPERIMENTAL |
- class YamlFileSpec(filename=None, **kwargs)#
Bases:
conda.plugins.types.EnvironmentSpecBase
EXPERIMENTAL
Base class for all env specs.
- property environment: conda.env.env.EnvironmentYaml#
- property env: conda.models.environment.Environment#
Express the provided environment file as a conda environment object.
- Returns Environment:
the conda environment represented by the file.
- _environment#
- extensions#
- can_handle()#
Validates loader can process environment definition. This can handle if:
the provided file exists
the provided file ends in the supported file extensions (.yaml or .yml)
the env file can be interpreted and transformed into a conda.env.env.Environment
- Returns:
True or False