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
What's the problem this feature will solve?
When installing a pyproject.toml-only project, the
Home-Pagemetadata won't be set (as there's no way to specify it: PEP 621 only maps toProject-Url). This meanspip showwon't provide any URL to the user.Describe the solution you'd like
If
Home-Pageis not set, instead select one of the project URLs (if present), with the following order of preference:Alternative Solutions
pip show -vshows all project URLs, but that still shows an emptyHome-page:fieldAdditional context
Project URLs were included in
pip show -vin #10827Code of Conduct