From 1995ad8d3875dd6633279952500ef84a9527bda9 Mon Sep 17 00:00:00 2001 From: Wolf Vollprecht Date: Wed, 16 Feb 2022 13:02:11 +0100 Subject: [PATCH] add additional hack for smithy --- boa/api.py | 4 ---- boa/core/recipe_output.py | 7 +++++++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/boa/api.py b/boa/api.py index 04dd64a9..4626965d 100644 --- a/boa/api.py +++ b/boa/api.py @@ -34,13 +34,9 @@ def render(recipe_dir, platform, arch, recipe_path = Path(recipe_dir) / "recipe.yaml" ydoc = core_render(recipe_path, config) - print("\n\n\nVARIANTS!!!\n\n", variants) # this takes in all variants and outputs, builds a dependency tree and returns # the final metadata - print(config) - print(cbc) - assembled_variants = {} # if we have a outputs section, use that order the outputs if ydoc.get("outputs"): diff --git a/boa/core/recipe_output.py b/boa/core/recipe_output.py index 1ec4dd59..cb3acbae 100644 --- a/boa/core/recipe_output.py +++ b/boa/core/recipe_output.py @@ -162,6 +162,7 @@ def __init__( parent = {} if selected_features is None: selected_features = {} + self.data = d self.data["source"] = d.get("source", parent.get("source", {})) self.config = config @@ -182,7 +183,13 @@ def set_section(sname): set_section("build") set_section("package") set_section("app") + + # TODO this is a hack ... set_section("extra") + set_section("about") + self.data["extra"] = self.sections["extra"] + self.data["about"] = self.sections["about"] + set_section("test") self.sections["files"] = d.get("files")