Skip to content

Email attributed to wrong project author #14813

Open
@SnoopJ

Description

@SnoopJ

Describe the bug

If a project defines multiple authors, and the first author does not list an email, PyPI will erroneously attribute the first email address in the metadata to that first author.

Expected behavior

PyPI should not attribute any email to the first author if one is not given.

To Reproduce

See an example here: https://pypi.org/project/sopel-iplookup/1.0.0/

The project's authorship metadata looks like:

[project]
authors = [                                                                                                                                                           
  { name="Dimitri Molenaars" },                                                                                                                                       
  { name="Elad Alfassa", email="[email protected]" },
  ...
]
...

Where there is no email listed for Dimitri Molenaars. On the PyPI project page linked above, however, the address [email protected] is attributed to this author.

The generated METADATA splits this information across the Author and Author-email fields, which may be related to the bug.

My Platform

N/A

Additional context

The closest open issue I can find is #9400, but that seems distinct.

Metadata

Metadata

Assignees

No one assigned

    Labels

    blockedIssues we can't or shouldn't get to yetbug 🐛

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions