tox-dev / pipdeptree

A command line utility to display dependency tree of the installed Python packages

Home Page:https://pypi.python.org/pypi/pipdeptree

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Capitalization on dependency package

Eutropios opened this issue · comments

Packages that are dependencies are displayed as all lowercase instead of using the proper capitalization. (See image)
Screenshot 2023-06-13 194849

I don't think this matters. Python packaging names are case insensitive.

@Eutropios: I think this is related to package names normalization. See PyPA Core metadata specifications and PEP 503 for more details.

Is interesting that if it's not a dependency package it shows up capitalized as in pip:

❯ venv/bin/pip list
Package    Version
---------- -------
pip        23.1.2
PyYAML     6.0
setuptools 67.7.2
wheel      0.40.0
❯ .tox/dev/bin/pipdeptree --python venv/bin/python
pip==23.1.2
PyYAML==6.0
setuptools==67.7.2
wheel==0.40.0

PR welcome to fix this inconsistency.