conda_recipe_manager.fetcher.base_artifact_fetcher
- Description:
Provides a base class that all Artifact Fetcher are derived from.
Classes
|
Base class for all ArtifactFetcher classes. |
- class conda_recipe_manager.fetcher.base_artifact_fetcher.BaseArtifactFetcher(name: str)[source]
Bases:
object
Base class for all ArtifactFetcher classes. An ArtifactFetcher provides a standard set of tools to retrieve bundles of source code.
Files retrieved from any artifact fetcher are stored in a secure temporary directory. That directory is deleted when the Artifact Fetcher instance falls out of scope.
- apply_patches() None [source]
TODO Flush this mechanism out. It looks like the same mechanism is used for http and git sources(?)
- abstract fetch() None [source]
Retrieves the build artifact and source code and dumps it to a secure temporary location.
"Gretchen, stop trying to make fetch happen! It's not going to happen!" - Regina George
- Raises:
FetchError -- When the target artifact fails to be acquired.
- abstract get_path_to_source_code() Path [source]
Returns the directory containing the artifact's bundled source code.
- Raises:
FetchRequiredError -- If a call to fetch() is required before using this function.