From 25da978fee0a0c9359f3f5c52818b126ecfe6fec Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Thu, 21 Sep 2017 15:07:38 +0300 Subject: [PATCH] Add support for "author" field in library.json manifest // Resolve #1055 --- platformio/managers/lib.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/platformio/managers/lib.py b/platformio/managers/lib.py index 75abbadb..ad3197a4 100644 --- a/platformio/managers/lib.py +++ b/platformio/managers/lib.py @@ -71,7 +71,10 @@ class LibraryManager(BasePkgManager): del manifest['sentence'] if "author" in manifest: - manifest['authors'] = [{"name": manifest['author']}] + if isinstance(manifest['author'], dict): + manifest['authors'] = [manifest['author']] + else: + manifest['authors'] = [{"name": manifest['author']}] del manifest['author'] if "authors" in manifest and not isinstance(manifest['authors'], list):