1
0
Fork 0

Propagate the json/yml -> toml change to README generator

This commit is contained in:
Alexandre Aubin 2023-01-20 00:02:59 +01:00
parent 255045a19d
commit 7b2c85c2ff

View file

@ -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(