specs#

Functions#

detect(→ SpecTypes)

Return the appropriate spec type to use.

Attributes#

context#
exception EnvironmentSpecPluginNotDetected(plugin_specs: list[conda.plugins.types.CondaEnvironmentSpecifier], *args, **kwargs)#

Bases: SpecNotFound

Common base class for all non-exit exceptions.

Initialize self. See help(type(self)) for accurate signature.

exception SpecNotFound(msg: str, *args, **kwargs)#

Bases: conda.CondaError

Common base class for all non-exit exceptions.

Initialize self. See help(type(self)) for accurate signature.

FileSpecTypes#
detect(filename: str | None = None) SpecTypes#

Return the appropriate spec type to use.

Raises:

SpecNotFound -- Raised if no suitable spec class could be found given the input