Handle duplicated package metadata when using importlib.metadata#342
Handle duplicated package metadata when using importlib.metadata#342gaborbernat merged 6 commits intotox-dev:mainfrom
Conversation
|
Make it a draft for now so that I can write a test or two and see if I can refactor the code at all 👍👍 |
|
One other thing I should mention, I think users who have an older pip installed on their system may get the duplicate metadata warning message as when they install $ pipdeptree
Warning!!! Duplicate package metadata found:
"/usr/local/lib/python3.8/site-packages"
pip 23.0.1 (using 24.0, "/home/vscode/.local/lib/python3.8/site-packages")
------------------------------------------------------------------------
covdefaults==2.3.0
└── coverage [required: >=6.0.2, installed: 7.4.4]
diff_cover==8.0.3
├── chardet [required: >=3.0.0, installed: 5.2.0]
├── Jinja2 [required: >=2.7.1, installed: 3.1.3]
. . .Should we accept this, or should we handle this special case in some way? Edit: Now that I think about it, this will only happen if they are using a version of pip<23.1.2 (where |
|
Gonna merge this and cut a 2.17.0 release! |
|
Thanks re-running the workflow (not sure why coverage for |
Fixes #341.
Using an environment similar to the one shown in the issue: