forked from platformio/platformio-core
Ensure that module.json keywords are lowercased
This commit is contained in:
@ -422,6 +422,8 @@ class ModuleJsonManifestParser(BaseManifestParser):
|
|||||||
del data["licenses"]
|
del data["licenses"]
|
||||||
if "dependencies" in data:
|
if "dependencies" in data:
|
||||||
data["dependencies"] = self._parse_dependencies(data["dependencies"])
|
data["dependencies"] = self._parse_dependencies(data["dependencies"])
|
||||||
|
if "keywords" in data:
|
||||||
|
data["keywords"] = self.str_to_list(data["keywords"], sep=",")
|
||||||
return data
|
return data
|
||||||
|
|
||||||
def _parse_authors(self, raw):
|
def _parse_authors(self, raw):
|
||||||
|
@ -172,7 +172,7 @@ def test_module_json_parser():
|
|||||||
"name": "YottaLibrary",
|
"name": "YottaLibrary",
|
||||||
"description": "This is Yotta library",
|
"description": "This is Yotta library",
|
||||||
"homepage": "https://yottabuild.org",
|
"homepage": "https://yottabuild.org",
|
||||||
"keywords": ["mbed", "Yotta"],
|
"keywords": ["mbed", "yotta"],
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"platforms": ["*"],
|
"platforms": ["*"],
|
||||||
"frameworks": ["mbed"],
|
"frameworks": ["mbed"],
|
||||||
|
Reference in New Issue
Block a user