specs
Classes
spec = BinstarSpec('darth/deathstar') |
|
Reads dependencies from a requirements.txt file |
|
Functions
|
Determine spec class to use from the provided |
|
Return the appropriate spec type to use. |
Attributes
- class BinstarSpec(name=None)
spec = BinstarSpec('darth/deathstar') spec.can_handle() # => True / False spec.environment # => YAML string spec.msg # => Error messages :raises: EnvironmentFileNotDownloaded
- msg
- binstar() types.ModuleType
- environment() conda_env.env.Environment
- package()
- 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
- SpecTypes
- detect(name: str = None, filename: str = None, directory: str = None, remote_definition: str = None) SpecTypes
Return the appropriate spec type to use.
- Raises
SpecNotFound -- Raised if no suitable spec class could be found given the input
EnvironmentFileExtensionNotValid | EnvironmentFileNotFound --