Skip to content

mecfs_bio.build_system.rebuilder.base_rebuilder

Abstract base class for Rebuilders. See Andrey Mokhov, Neil Mitchell, and Simon Peyton Jones. Build systems à la carte.

Classes:

Rebuilder

Bases: ABC

Key Operations: - Decide whether a given asset is up-to-date using information from Info. - If the asset is up-to-date, return it together with Info. - If the asset is not up-to-date, bring it up-to-date, update Info, and return the new values of both.

Methods:

rebuild abstractmethod

rebuild(
    task: Task,
    asset: Asset | None,
    fetch: Fetch,
    wf: WF,
    info: Info,
    meta_to_path: MetaToPath,
) -> tuple[Asset, Info]
Source code in mecfs_bio/build_system/rebuilder/base_rebuilder.py
@abstractmethod
def rebuild(
    self,
    task: Task,
    asset: Asset | None,
    fetch: Fetch,
    wf: WF,
    info: Info,
    meta_to_path: MetaToPath,
) -> tuple[Asset, Info]:
    pass

save_info abstractmethod classmethod

save_info(info: Info, path: Path)
Source code in mecfs_bio/build_system/rebuilder/base_rebuilder.py
@classmethod
@abstractmethod
def save_info(cls, info: Info, path: Path):
    pass