Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip show <package_name> error with Autor, Author-email and Home-page #12756

Open
1 task done
ucomru opened this issue Jun 8, 2024 · 2 comments
Open
1 task done

pip show <package_name> error with Autor, Author-email and Home-page #12756

ucomru opened this issue Jun 8, 2024 · 2 comments
Labels
C: list/show 'pip list' or 'pip show' type: enhancement Improvements to functionality

Comments

@ucomru
Copy link

ucomru commented Jun 8, 2024

Description

When Im using pip show with pip show python-docx package (or any one else):

$ pip show python-docx
Name: python-docx
Version: 1.1.0
Summary: Create, read, and update Microsoft Word .docx files.
Home-page:
Author:
Author-email: Steve Canny <stcanny@gmail.com>
License: MIT

Were can to see empty Author and Home-page.
But: Author-email == Author + email

But at the origin pyproject.toml there are:

[project]
authors = [{name = "Steve Canny", email = "stcanny@gmail.com"}]

[project.urls]
Homepage = "https://github.com/python-openxml/python-docx"

Another strange thing, that the pip show is project.urls.Source, but not project.urls.Homepage

Expected behavior

No response

pip version

24.0

Python version

3.12.2

OS

Mac OS 14.5

How to Reproduce

pip install python-docx
pip show python-docx

Output

pip show python-docx

Name: python-docx
Version: 1.1.0
Summary: Create, read, and update Microsoft Word .docx files.
Home-page:
Author:
Author-email: Steve Canny stcanny@gmail.com
License: MIT

Code of Conduct

@ucomru ucomru added S: needs triage Issues/PRs that need to be triaged type: bug A confirmed bug or unintended behavior labels Jun 8, 2024
@tpburns
Copy link

tpburns commented Jun 11, 2024

With respect to labeling, I do not believe this is a bug: pip show python-docx seems to be giving an accurate reporting of the correctly recorded metadata. For an example of prior discussion on this, see pypa/packaging-problems#670 (comment)

The two topics mentioned in this issue are populating Home-page from Project-URL and Author from Author-Email during a pip show call. Happily, the first was discussed in #11221 and addressed in #12569 which has already been accepted! I was unable to easily find a similar effort underway for Author. But even if no such issue exists, then I'm not sure if this should be relabeled and re-framed as such, or if that ought to be done in an issue specifically crafted for it?

@uranusjr
Copy link
Member

Just for completeness, Steve Canny <stcanny@gmail.com> is a valid email value using the optional display name format. Most humans associate the term email to only the foo@domain part, so that’s what we use in pyproject.toml (which is written and read by humans), but the metadata format (written and read by machines) uses the technically more accurate terminology for historical reasons.

@ichard26 ichard26 added type: enhancement Improvements to functionality C: list/show 'pip list' or 'pip show' and removed type: bug A confirmed bug or unintended behavior S: needs triage Issues/PRs that need to be triaged labels Jul 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: list/show 'pip list' or 'pip show' type: enhancement Improvements to functionality
Projects
None yet
Development

No branches or pull requests

4 participants