-
-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle duplicated package metadata when using importlib.metadata (#342)
Fixes #341. Using an environment similar to the one shown in the issue: ```console $ PYTHONPATH=/workspaces/pipdeptree/temp-site-pkgs/ pipdeptree -a -d 0 Warning!!! Duplicate package metadata found: "/home/vscode/.local/lib/python3.9/site-packages" pluggy 1.4.0 (using 1.4.0, "/workspaces/pipdeptree/temp-site-pkgs") packaging 24.0 (using 24.0, "/workspaces/pipdeptree/temp-site-pkgs") tomli 2.0.1 (using 2.0.1, "/workspaces/pipdeptree/temp-site-pkgs") pytest 8.1.1 (using 8.1.1, "/workspaces/pipdeptree/temp-site-pkgs") exceptiongroup 1.2.0 (using 1.2.0, "/workspaces/pipdeptree/temp-site-pkgs") iniconfig 2.0.0 (using 2.0.0, "/workspaces/pipdeptree/temp-site-pkgs") "/usr/local/lib/python3.9/site-packages" pip 23.0.1 (using 24.0, "/home/vscode/.local/lib/python3.9/site-packages") ------------------------------------------------------------------------ chardet==5.2.0 covdefaults==2.3.0 coverage==7.4.4 diff_cover==8.0.3 distlib==0.3.8 exceptiongroup==1.2.0 filelock==3.13.3 gitdb==4.0.11 GitPython==3.1.41 iniconfig==2.0.0 Jinja2==3.1.3 MarkupSafe==2.1.5 packaging==24.0 pip==24.0 pipdeptree==2.16.3.dev3+g91d21e3.d20240403 platformdirs==4.2.0 pluggy==1.4.0 Pygments==2.17.2 pytest==8.1.1 pytest-cov==5.0.0 pytest-mock==3.14.0 setuptools==69.0.3 smmap==5.0.1 tomli==2.0.1 virtualenv==20.25.1 wheel==0.42.0 ```
- Loading branch information
Showing
4 changed files
with
92 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters