Md5Decider

A decider that uses MD5 hashes.

class disseminate.builders.deciders.md5decider.Md5Decider(env, name=None)

A decider that uses md5 hashes to compute whether a build is needed.

property db_path

The path for the database file

decision_cls

alias of disseminate.builders.deciders.md5decider.Md5Decision

class disseminate.builders.deciders.md5decider.Md5Decision(parent_decider)

A decision for the Md5Decider

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.

static calculate_hash(inputs, output)

Calculate the md5 hash for the inputs, output and args.