forked from platformio/platformio-core
Parse package.json manifest keywords
This commit is contained in:
@ -641,6 +641,8 @@ class PackageJsonManifestParser(BaseManifestParser):
|
|||||||
|
|
||||||
def parse(self, contents):
|
def parse(self, contents):
|
||||||
data = json.loads(contents)
|
data = json.loads(contents)
|
||||||
|
if "keywords" in data:
|
||||||
|
data["keywords"] = self.str_to_list(data["keywords"], sep=",")
|
||||||
data = self._parse_system(data)
|
data = self._parse_system(data)
|
||||||
data = self._parse_homepage(data)
|
data = self._parse_homepage(data)
|
||||||
return data
|
return data
|
||||||
|
@ -627,6 +627,7 @@ def test_package_json_schema():
|
|||||||
{
|
{
|
||||||
"name": "tool-scons",
|
"name": "tool-scons",
|
||||||
"description": "SCons software construction tool",
|
"description": "SCons software construction tool",
|
||||||
|
"keywords": "SCons, build",
|
||||||
"url": "http://www.scons.org",
|
"url": "http://www.scons.org",
|
||||||
"version": "3.30101.0"
|
"version": "3.30101.0"
|
||||||
}
|
}
|
||||||
@ -642,6 +643,7 @@ def test_package_json_schema():
|
|||||||
{
|
{
|
||||||
"name": "tool-scons",
|
"name": "tool-scons",
|
||||||
"description": "SCons software construction tool",
|
"description": "SCons software construction tool",
|
||||||
|
"keywords": ["scons", "build"],
|
||||||
"homepage": "http://www.scons.org",
|
"homepage": "http://www.scons.org",
|
||||||
"version": "3.30101.0",
|
"version": "3.30101.0",
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user