Decider

Decider classes to evaluate whether a build is needed.

class disseminate.builders.deciders.decider.Decider(env)

A decider to evaluate whether a build is needed.

property decision

Return the Decision class associated with this decider.

decision_cls

alias of disseminate.builders.deciders.decider.Decision

class disseminate.builders.deciders.decider.Decision(parent_decider)

A decision to build.

The base decision checks to see if the input files and output file

exist.

Parameters
parent_deciderbuilders.decider.Decider

The parent decider instance that created this decision.

build_needed(inputs, output, reset=False)

Determine whether a build is needed.

Parameters
inputsList[str, paths.SourcePath, tuple]

The input infilepaths, strings and arguments to use in the build.

outputpaths.TargetPath

The outfilepath for the built file

resetOptional[bool]

If True, reset cached values in determining whether the build is needed.

Raises
MissingInputFiles

Raise if one or more of the input files are missing.