Skip to content

Commit

Permalink
update bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
proycon committed May 19, 2018
1 parent a2f93ff commit 6550504
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions codemeta/codemeta.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,11 @@ def update(data, newdata):
update(data[key], value)
elif isinstance(value, list):
for x in value:
if x not in data[key]:
data[key].append(x)
if isinstance(data[key], dict ):
data[key] = [ data[key], x ]
elif x not in data[key]:
if isinstance(data[key], list):
data[key].append(x)
else:
data[key] = value
else:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def read(fname):

setup(
name = "CodeMetaPy",
version = "0.1.3",
version = "0.1.4",
author = "Maarten van Gompel",
author_email = "[email protected]",
description = ("Generate CodeMeta metadata for Python packages"),
Expand Down

0 comments on commit 6550504

Please sign in to comment.