mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 10:07:14 +02:00
Ignore empty fields in library.properties manifest
This commit is contained in:
@ -482,6 +482,8 @@ class LibraryPropertiesManifestParser(BaseManifestParser):
|
|||||||
if line.startswith("#"):
|
if line.startswith("#"):
|
||||||
continue
|
continue
|
||||||
key, value = line.split("=", 1)
|
key, value = line.split("=", 1)
|
||||||
|
if not value.strip():
|
||||||
|
continue
|
||||||
data[key.strip()] = value.strip()
|
data[key.strip()] = value.strip()
|
||||||
return data
|
return data
|
||||||
|
|
||||||
|
@ -202,6 +202,7 @@ author=SomeAuthor <info AT author.com>
|
|||||||
sentence=This is Arduino library
|
sentence=This is Arduino library
|
||||||
customField=Custom Value
|
customField=Custom Value
|
||||||
depends=First Library (=2.0.0), Second Library (>=1.2.0), Third
|
depends=First Library (=2.0.0), Second Library (>=1.2.0), Third
|
||||||
|
ignore_empty_field=
|
||||||
"""
|
"""
|
||||||
raw_data = parser.LibraryPropertiesManifestParser(contents).as_dict()
|
raw_data = parser.LibraryPropertiesManifestParser(contents).as_dict()
|
||||||
raw_data["dependencies"] = sorted(raw_data["dependencies"], key=lambda a: a["name"])
|
raw_data["dependencies"] = sorted(raw_data["dependencies"], key=lambda a: a["name"])
|
||||||
|
Reference in New Issue
Block a user