Normalise entry point and package name to make 'pip run' more permissive
#618 geöffnet am 1. Feb. 2021
Repository-Metriken
- Stars
- (7.844 Stars)
- PR-Merge-Metriken
- (Durchschn. Merge 5T 2h) (16 gemergte PRs in 30 T)
Beschreibung
Continuing the discussion in https://github.com/pipxproject/pipx/pull/615#issuecomment-770336369
I'm assuming the following will not work:
pipx run bUiLd --helpIt will download and install build properly from PyPI (I believe) but it won't match the likely
pipx.runendpoint name of "build".
console scripts in conjunction with
pipx runwould face the same issue.
How can we improve this? I guess it’s not too controversial that the names should be case-insensitive. How about dashes, underscores, and dots? Do we use the same normalisation logic as PEP 503?
This change would also make the check here more difficult:
Since now we will need to walk through PATH and make sure none of the variants exist on it?