conda_recipe_manager.fetcher.artifact_fetcher
- Description:
Module that provides general Artifact Fetching utilities and factory methods.
Functions
|
Parses and constructs a list of artifact-fetching objects based on the contents of a recipe. |
- conda_recipe_manager.fetcher.artifact_fetcher.from_recipe(recipe: RecipeReader, ignore_unsupported: bool = False) dict[str, BaseArtifactFetcher] [source]
Parses and constructs a list of artifact-fetching objects based on the contents of a recipe.
NOTE: To keep this function fast, this function does not invoke fetch() on any artifacts found. It is up to the caller to manage artifact retrieval.
- Currently supported sources (per recipe schema):
HTTP/HTTPS with tar or zip artifacts (V0 and V1)
git (unauthenticated) (V0 and V1)
- Parameters:
recipe -- Parser instance for the target recipe
ignore_unsupported -- (Optional) If set to True, ignore currently unsupported artifacts found in the source section and return the list of supported sources. Otherwise, throw an exception.
- Raises:
FetchUnsupportedError -- If an unsupported source format is found.
- Returns:
A map containing one path and Artifact Fetcher instance pair per source found in the recipe file.