tox-dev / pipdeptree

A command line utility to display dependency tree of the installed Python packages
https://pypi.python.org/pypi/pipdeptree
MIT License
2.79k stars 150 forks source link

Handle invalid requirement strings when using importlib.metadata #345

Closed kemzeb closed 5 months ago

kemzeb commented 5 months ago

Resolves #344.

This change also:

kemzeb commented 5 months ago

Here's an example of what it looks like:

$ pipdeptree
Warning!!! Invalid requirement strings found for the following distributions:
catalyst
  Skipping "scikit-image (<0.19.0>=0.16.1) ; extra == 'all'"
------------------------------------------------------------------------
catalyst==22.4
├── accelerate [required: >=0.5.1, installed: 0.29.1]
│   ├── huggingface-hub [required: Any, installed: 0.22.2]
│   │   ├── filelock [required: Any, installed: 3.13.3]
. . .