Describe the bug
Not a bug, in reality, but lead to confusion in my case.
importlib.metadata.distribution shows typing_extensions requirement as typing_extensions (>=4.7,<5.0) ; python_version < "3.11"'.
The correct name of the library is typing-extensions (I get it as it is written on pypi). This may lead to some confusions in scripts which analyze dependencies as Requirement("typing_extensions") is not equal to Requirement("typing-extensions") (nevertheless, both work and are installed correctly by pip).
To Reproduce
from importlib.metadata import distribution
from packaging.requirements import Requirement
dist = distribution("fakeredis")
for req in dist.requires:
print(Requirement(req).name)
Expected behavior
library name should be typing-extensions
Desktop (please complete the following information):
OS: docker python-3.9-slim
python 3.9 (but can be any other)
fakeredis[lua]==2.24.1
Upvote & Fund
We're using Polar.sh so you can upvote and help fund this issue.
We receive the funding once the issue is completed & confirmed by you.
Thank you in advance for helping prioritize & fund our backlog.
Describe the bug Not a bug, in reality, but lead to confusion in my case.
importlib.metadata.distribution
showstyping_extensions
requirement astyping_extensions (>=4.7,<5.0) ; python_version < "3.11"'
. The correct name of the library istyping-extensions
(I get it as it is written on pypi). This may lead to some confusions in scripts which analyze dependencies asRequirement("typing_extensions")
is not equal toRequirement("typing-extensions")
(nevertheless, both work and are installed correctly by pip).To Reproduce
Expected behavior library name should be typing-extensions
Desktop (please complete the following information):
Upvote & Fund