Table of Contents
fetch_cpy_src.manifest
manifest to be downloaded & adapted
ManifestItem Objects
@dataclass
class ManifestItem()
Item of the manifest.
Item of both type "file" & "dir" can have both file_adapters & dir_adapters.
For item of type "file", dir_adapters means those applied to the parent directory of
the file; for item of type "dir", file_adapters means those applied to the sub-file
within the directory.
file_adapters
chain of adapters for file
dir_adapters
chain of adapters for file
Manifest Objects
class Manifest()
manifest of files & directories of cpython repo to be downloaded & adapted
tag
version in most cases
work_dir
download & inplace-adaption directory
__init__
def __init__(tag: str,
items: List[ManifestItem],
work_dir: Path = None,
github_access_token: str = None)
constructor
load
@classmethod
def load(cls,
toml_file: Path,
work_dir: Path = None,
github_access_token: Optional[str] = None) -> 'Manifest'
create manifest from toml
update
def update() -> List[Path]
apply downloading & adaption, return proceeded files' path