File tree Expand file tree Collapse file tree 1 file changed +22
-4
lines changed
Expand file tree Collapse file tree 1 file changed +22
-4
lines changed Original file line number Diff line number Diff line change @@ -309,8 +309,17 @@ def parse_python(
309309 mail = pkg .metadata .get ("Author-email" , "" ),
310310 baseuri = args .baseuri ,
311311 )
312- elif key == "Author-email" :
313- continue # already handled by the above
312+ elif key == "Author-email" : # importlib.metadata
313+ add_authors (
314+ g ,
315+ res ,
316+ value = pkg .metadata .get ("Author-email" , "" ).rsplit ("<" )[0 ],
317+ single_author = True ,
318+ mail = pkg .metadata .get ("Author-email" , "" )
319+ .rsplit ("<" )[- 1 ]
320+ .rstrip (">" ),
321+ baseuri = args .baseuri ,
322+ )
314323 elif key == "maintainers" and isinstance (value , (list , tuple )): # pyproject
315324 for e in value :
316325 if isinstance (e , str ):
@@ -335,8 +344,17 @@ def parse_python(
335344 mail = pkg .metadata .get ("Maintainer-email" , "" ),
336345 baseuri = args .baseuri ,
337346 )
338- elif key == "Maintainer-email" :
339- continue # already handled by the above
347+ elif key == "Maintainer-email" : # importlib.metadata
348+ add_authors (
349+ g ,
350+ res ,
351+ value = pkg .metadata .get ("Maintainer-email" , "" ).rsplit ("<" )[0 ],
352+ single_author = True ,
353+ mail = pkg .metadata .get ("Maintainer-email" , "" )
354+ .rsplit ("<" )[- 1 ]
355+ .rstrip (">" ),
356+ baseuri = args .baseuri ,
357+ )
340358 elif key == "Project-URL" :
341359 if "," in value :
342360 label , url = value .split ("," , 1 ) # according to spec
You can’t perform that action at this time.
0 commit comments