Skip to content

Commit

Permalink
do not reset entrypoints when chaining!
Browse files Browse the repository at this point in the history
  • Loading branch information
proycon committed Nov 20, 2019
1 parent c7471e4 commit bd48985
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions codemeta/codemeta.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def parsepython(data, packagename, mapping=None, with_entrypoints=False, orcid_p
data["runtimePlatform"] = "Python " + str(sys.version_info.major) + "." + str(sys.version_info.minor) + "." + str(sys.version_info.micro)
else:
data["runtimePlatform"] = "Python 3"
if with_entrypoints:
if with_entrypoints and not 'entryPoints' in data:
#not in official specification!!!
data['entryPoints'] = []
pkg = importlib_metadata.distribution(packagename)
Expand Down Expand Up @@ -235,7 +235,7 @@ def parseapt(data, lines, mapping=None, with_entrypoints=False, orcid_placeholde
provider = PROVIDER_DEBIAN
description = ""
parsedescription = False
if with_entrypoints:
if with_entrypoints and not 'entryPoints' in data:
#not in official specification!!!
data['entryPoints'] = []
for line in lines:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def read(fname):

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

0 comments on commit bd48985

Please sign in to comment.