Ensure that module.json keywords are lowercased

This commit is contained in:
Ivan Kravets
2020-07-14 18:55:29 +03:00
parent 368c66727b
commit cca3099d13
2 changed files with 3 additions and 1 deletions

View File

@ -422,6 +422,8 @@ class ModuleJsonManifestParser(BaseManifestParser):
del data["licenses"]
if "dependencies" in data:
data["dependencies"] = self._parse_dependencies(data["dependencies"])
if "keywords" in data:
data["keywords"] = self.str_to_list(data["keywords"], sep=",")
return data
def _parse_authors(self, raw):

View File

@ -172,7 +172,7 @@ def test_module_json_parser():
"name": "YottaLibrary",
"description": "This is Yotta library",
"homepage": "https://yottabuild.org",
"keywords": ["mbed", "Yotta"],
"keywords": ["mbed", "yotta"],
"license": "Apache-2.0",
"platforms": ["*"],
"frameworks": ["mbed"],