Skip to content

Commit

Permalink
Make setup metadata more flexible
Browse files Browse the repository at this point in the history
  • Loading branch information
tmorrell committed Jul 10, 2024
1 parent e8fad4e commit 75871bd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 75871bd

Please sign in to comment.