cep_24#

Define cep-0024 compliant YAML spec.

Classes#

Cep24YamlFileSpec

EXPERIMENTAL

class Cep24YamlFileSpec(filename: str | None = None, **kwargs)#

Bases: conda.plugins.types.EnvironmentSpecBase

EXPERIMENTAL

Base class for all environment specifications.

Environment specs parse different types of environment definition files (environment.yml, requirements.txt, pyproject.toml, etc.) into a common Environment object model.

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 provided file is compliant with the CEP-0024

Returns:

True or False