From 7b2c85c2ff5d328dc03954c1f652aac0c17d5dc2 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Fri, 20 Jan 2023 00:02:59 +0100 Subject: [PATCH] Propagate the json/yml -> toml change to README generator --- README-generator/make_readme.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/README-generator/make_readme.py b/README-generator/make_readme.py index 9788d89..5f004ea 100755 --- a/README-generator/make_readme.py +++ b/README-generator/make_readme.py @@ -4,7 +4,6 @@ import argparse import json import toml import os -import yaml from pathlib import Path from jinja2 import Environment, FileSystemLoader @@ -33,11 +32,10 @@ def generate_READMEs(app_path: str): upstream = manifest.get("upstream", {}) - catalog = json.load(open(Path(os.path.abspath(__file__)).parent.parent.parent / "apps.json")) + catalog = toml.load(open(Path(os.path.abspath(__file__)).parent.parent.parent / "apps.toml")) from_catalog = catalog.get(manifest['id'], {}) - antifeatures_list = yaml.load(open(Path(os.path.abspath(__file__)).parent.parent.parent / "antifeatures.yml"), Loader=yaml.SafeLoader) - antifeatures_list = { e['id']: e for e in antifeatures_list } + antifeatures_list = toml.load(open(Path(os.path.abspath(__file__)).parent.parent.parent / "antifeatures.toml")) if not upstream and not (app_path / "doc" / "DISCLAIMER.md").exists(): print(