stepup.core.stepinfo
Information about a step in a StepUp build, intended for defining follow-up steps.
StepInfo
¶
Information about a step in a StepUp build, intended for defining follow-up steps.
This object does not contain any dynamic dependency information. It only holds initial dependencies known at the time the step is defined.
All paths and environment variable names are stored in sorted order to ensure consistency. If paths are relative, they should be relative to the work directory.
Source code in stepup/core/stepinfo.py
command = attrs.field(converter=str)
class-attribute
instance-attribute
¶
The command executed by the step.
env = attrs.field(converter=_convert_to_strs)
class-attribute
instance-attribute
¶
List of names of environment variables to which the step is sensitive.
inp = attrs.field(converter=_convert_to_paths)
class-attribute
instance-attribute
¶
List of input paths of the step.
out = attrs.field(converter=_convert_to_paths)
class-attribute
instance-attribute
¶
List of output paths of the step.
vol = attrs.field(converter=_convert_to_paths)
class-attribute
instance-attribute
¶
List of volatile output paths of the step.
workdir = attrs.field(converter=coerce_path)
class-attribute
instance-attribute
¶
The work directory of the step.
filter_inp(pattern, **subs)
¶
Return a NamedGlob object with matching results from self.inp.
filter_out(pattern, **subs)
¶
Return a NamedGlob object with matching results from self.out.
filter_vol(pattern, **subs)
¶
Return a NamedGlob object with matching results from self.vol.
dump_step_info(filename, step_info)
¶
Dump one or more step info objects to a JSON file.
The file will contain a single JSON object or a JSON array of such objects.
Source code in stepup/core/stepinfo.py
load_step_info(filename)
¶
Load one or more step info objects from a JSON file.
The file should contain a single JSON object or a JSON array of such objects.