Skip to content

Add popular utility package mappings (attrs, python-docx, XlsxWriter) - #545

Open
Johnnnmai wants to merge 1 commit into
bndr:masterfrom
Johnnnmai:fix/add-utility-package-mappings
Open

Add popular utility package mappings (attrs, python-docx, XlsxWriter)#545
Johnnnmai wants to merge 1 commit into
bndr:masterfrom
Johnnnmai:fix/add-utility-package-mappings

Conversation

@Johnnnmai

@Johnnnmai Johnnnmai commented Jul 7, 2026

Copy link
Copy Markdown

Adds mappings for widely-used utility packages. For example, import attr requires attrs on PyPI, and import docx requires python-docx.

@PNHD PNHD left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two of these one-to-one mappings are ambiguous and can produce incorrect requirements. attr is itself a distinct PyPI distribution that provides from attr import attr (and explicitly notes that attrs also provides/shadows an attr package), while both whois and python-whois are separate distributions using the whois import name. Hard-mapping attr -> attrs and whois -> python-whois therefore rewrites valid dependencies to different projects. #141 already tracks this one-import-to-multiple-distributions problem. Please remove/split the ambiguous entries unless the resolver can disambiguate them; the unambiguous mappings can be reviewed separately.

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

Successfully merging this pull request may close these issues.

2 participants