Skip to content

Show 'home-page' project URL when Home-Page metadata value is not set #11221

Description

@EpicWink

What's the problem this feature will solve?

When installing a pyproject.toml-only project, the Home-Page metadata won't be set (as there's no way to specify it: PEP 621 only maps to Project-Url). This means pip show won't provide any URL to the user.

Describe the solution you'd like

If Home-Page is not set, instead select one of the project URLs (if present), with the following order of preference:

  • Home-page
  • Homepage
  • homepage
  • Source
  • fallback: the first project-URL in the metadata

Alternative Solutions

pip show -v shows all project URLs, but that still shows an empty Home-page: field

Additional context

Project URLs were included in pip show -v in #10827

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions