specs#

Classes#

RequirementsSpec

Reads dependencies from a requirements.txt file

YamlFileSpec

Functions#

get_spec_class_from_file(→ FileSpecTypes)

Determine spec class to use from the provided filename

detect(→ SpecTypes)

Return the appropriate spec type to use.

Attributes#

deprecated#
exception EnvironmentFileExtensionNotValid(filename, *args, **kwargs)#

Bases: CondaEnvException

Common base class for all non-exit exceptions.

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

exception EnvironmentFileNotFound(filename, *args, **kwargs)#

Bases: CondaEnvException

Common base class for all non-exit exceptions.

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

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

Bases: conda.CondaError

Common base class for all non-exit exceptions.

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

CONDA_SESSION_SCHEMES#
class RequirementsSpec(filename=None, name=None, **kwargs)#

Reads dependencies from a requirements.txt file and returns an Environment object from it.

property environment#
msg#
extensions#
_valid_file()#
_valid_name()#
can_handle()#
class YamlFileSpec(filename=None, **kwargs)#
property environment#
_environment#
extensions#
can_handle()#
FileSpecTypes#
get_spec_class_from_file(filename: str) FileSpecTypes#

Determine spec class to use from the provided filename

Raises:

EnvironmentFileExtensionNotValid | EnvironmentFileNotFound --

detect(name: str | None = None, filename: str | None = None, directory: str | None = None) SpecTypes#

Return the appropriate spec type to use.

Raises: