conda_recipe_manager.fetcher.http_artifact_fetcher
- Description:
Provides an Artifact Fetcher capable of acquiring a software archive from an HTTP/HTTPS source.
Classes
|
Enumerates the types of archive file formats that are supported. |
|
Artifact Fetcher capable of downloading a software archive from a remote HTTP/HTTPS source. |
- class conda_recipe_manager.fetcher.http_artifact_fetcher.ArtifactArchiveType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]
Bases:
Enum
Enumerates the types of archive file formats that are supported.
- TARBALL = 3
- UNKNOWN = 4
- ZIP = 1
- ZIP_7 = 2
- class conda_recipe_manager.fetcher.http_artifact_fetcher.HttpArtifactFetcher(name: str, archive_url: str)[source]
Bases:
BaseArtifactFetcher
Artifact Fetcher capable of downloading a software archive from a remote HTTP/HTTPS source.
- apply_patches() None
TODO Flush this mechanism out. It looks like the same mechanism is used for http and git sources(?)
- fetch() None [source]
Retrieves a software archive from a remote HTTP/HTTPS host and stores the files in a secure temporary directory.
- Raises:
FetchError -- If an issue occurred while downloading or extracting the archive.
- get_archive_sha256() str [source]
Calculates a SHA-256 hash on the downloaded software archive.
- Raises:
FetchRequiredError -- If fetch() has not been successfully invoked.
- get_archive_type() ArtifactArchiveType [source]
Returns the type of archive that was retrieved. This evaluation was determined by evaluating the file and not by the file name.
- Raises:
FetchRequiredError -- If fetch() has not been successfully invoked.
- get_path_to_source_code() Path [source]
Returns the directory containing the artifact's bundled source code. NOTE: If the target archive compresses top-level folder that contains the source code, this path will point to a directory containing that uncompressed top-level folder.
- Raises:
FetchRequiredError -- If fetch() has not been successfully invoked.