pipeline assemblers are stages now

Instead of using the `Assemblers` class to represent assemblers,
use the `Stage` class: The `Pipeline.add_assembler` method will
now instantiate and `Stage` instead of an `Assembler`. The tree
that the pipeline built is converted to an Input (while loading
the manifest description in `format/v1.py`) and all existing
assemblers are converted to use that input as the tree input.

The assembler run test is removed as the Assembler class itself
is not used (i.e. run) anymore.
This commit is contained in:
Christian Kellner 2021-01-15 18:34:28 +01:00 committed by Tom Gundersen
parent ff7696a92e
commit 8ccc73d1c3
10 changed files with 39 additions and 45 deletions

View file

@ -185,5 +185,7 @@ def main(tree, output_dir, options, meta):
if __name__ == '__main__':
args = api.arguments()
r = main(args["tree"], args["output_dir"], args["options"], args["meta"])
args_input = args["inputs"]["tree"]["path"]
args_output = args["tree"]
r = main(args_input, args_output, args["options"], args["meta"])
sys.exit(r)