pipx icon indicating copy to clipboard operation
pipx copied to clipboard

Match pip's behaviour when package name ends with archive extension

Open dukecat0 opened this issue 3 years ago • 1 comments

  • [x] I have added an entry to docs/changelog.md

Summary of changes

Match pip's behaviour when package name ends with an archive extension such as .whl, .tar.gz (Treat it as a local path).

Closes #641

Test plan

Tested by running

pipx install black-22.6.0-py3-none-any.whl --verbose

dukecat0 avatar Jul 30 '22 14:07 dukecat0

It will still change to black-22.6.0-py3-none-any-whl if the file doesn't exist since it may be a valid project name.

Or we should directly raise file not found error? Since a project name like this is really rare.

dukecat0 avatar Jul 30 '22 14:07 dukecat0