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

Potential output improvements #7

Open
dgw opened this issue May 31, 2024 · 0 comments
Open

Potential output improvements #7

dgw opened this issue May 31, 2024 · 0 comments

Comments

@dgw
Copy link
Member

dgw commented May 31, 2024

For newer packages using pyproject.toml and other more-modern systems for embedding metadata, sometimes details like the "author" wind up empty or weirdly formatted.

Sopel 8.0.0, for example, is on track to have an "Author" name field that effectively contains ', '.join(author_list). In other cases, such as when both a name and email are specified for a single author, the "Author" name field is empty and both the name & email end up in the "Author-Email" field. (The latter case has this plugin show "(unknown name)", because the name-only field is empty.)

pypi/warehouse#9400 and pypi/warehouse#14813 describe the odd behaviors we (the loose collective of Sopel core & plugin maintainers) have noticed, and it doesn't seem like there is yet any real motivation to mitigate them on the PyPI side. In lieu, we might need to make sopel-pypi itself "smarter" about extracting useful metadata and/or displaying it in a useful way on IRC.

Comma-separated lists of authors could benefit from at least converting the final , into &, or perhaps from capping the author list with et al. if there are a lot of entries (to leave more room for the package description).

Empty "Author" fields could pull from the "Author-Email" and extract only the names… which could be complicated if some entries consist only of email addresses, but those entries could use a fallback value like the email username.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant