From 75871bd22bb34a09ad0741e03e8fca6645481963 Mon Sep 17 00:00:00 2001 From: Tom Morrell Date: Wed, 10 Jul 2024 15:24:58 +0200 Subject: [PATCH] Make setup metadata more flexible --- setup.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index baa59eb..a4dbcf8 100755 --- a/setup.py +++ b/setup.py @@ -40,9 +40,9 @@ def package_files(package, directory): author = "" author_email = "" for obj in meta["author"]: - given = obj["givenName"] - family = obj["familyName"] - email = obj["email"] + given = obj.get("givenName", "") + family = obj.get("familyName", "") + email = obj.get("email", "") if len(author) == 0: author = given + " " + family else: