Yields Party of `party_role` given a list of ``person_names`` strings. https://doc.rust-lang.org/cargo/reference/manifest.html#the-authors-field-optional
(person_names, party_role)
| 370 | |
| 371 | |
| 372 | def get_parties(person_names, party_role): |
| 373 | """ |
| 374 | Yields Party of `party_role` given a list of ``person_names`` strings. |
| 375 | https://doc.rust-lang.org/cargo/reference/manifest.html#the-authors-field-optional |
| 376 | """ |
| 377 | for person_name in person_names: |
| 378 | name, email = parse_person(person_name) |
| 379 | yield models.Party( |
| 380 | type=models.party_person, |
| 381 | name=name, |
| 382 | role=party_role, |
| 383 | email=email, |
| 384 | ).to_dict() |
| 385 | |
| 386 | |
| 387 | person_parser = re.compile( |
no test coverage detected