MCPcopy Create free account
hub / github.com/aboutcode-org/scancode-toolkit / get_parties

Function get_parties

src/packagedcode/rubygems.py:711–721  ·  view source on GitHub ↗

Return a lits of Party from a mapping of ``gem_data``

(gem_data)

Source from the content-addressed store, hash-verified

709
710
711def get_parties(gem_data):
712 """
713 Return a lits of Party from a mapping of ``gem_data``
714 """
715 parties = []
716 authors = gem_data.get('author') or []
717 parties.extend(party_mapper(names=authors, role='author'))
718 # FIXME: emails is NOT a party
719 emails = gem_data.get('email') or []
720 parties.extend(party_mapper(emails=emails, role='author'))
721 return parties
722
723
724def get_file_references(files):

Callers 1

parseMethod · 0.70

Calls 2

party_mapperFunction · 0.70
getMethod · 0.65

Tested by

no test coverage detected