-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Downloads Hashing Command Line and Requirements File #468
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Confirmed that this is an issue; pull request welcome. |
https://github.com/acdha/pip/tree/issue-468-url-hash-fragment-support has a very simple fix for the second case. This does not work for non-URL installs (e.g. |
FWIW, it's suppose to check the hashes from links it finds on PyPI, not passed from the command line AFAIK. |
@jezdez What about non-PyPI packages? I was thinking that this would be a great way to have people who need / want to use packages which aren't on PyPI (e.g. Github tarballs, internal repos) to have a backup which isn't insecure |
Right, I think this is really a new feature, not a bug, since it's never been documented that you can do this. But that doesn't really matter - it's a very useful feature with no downside that I can see. |
@carljm rubbish this feature is hinted at in the pip documentation (I would consider this a bug not a new feature): from http://www.pip-installer.org/en/latest/usage.html#package-checksum-hashes , "PyPI provides a md5 hash of a package by having the link to the package include a #md5=. pip supports this, as well as any of the guaranteed hashlib algorithms (sha1, sha224, sha384, sha256, sha512, md5)." |
@dstufft has done recent work on this. Any comments Donald? |
@d1b have you tested with latest pip or develop branch? |
it's reasonable to want |
@pnasrat are you suggesting that this bug has been fixed in pip already? It certainly appears not to have been fixed --> ~/.local/bin/pip install http://localhost:4344/archive.zip#md5=123 |
This is more or less solved with pep 8's explicit hash checking mode. |
It is my understanding that pip is supposed to check the passed in hash if it is included in either the requirements file or the command line. This appears to not be currently happening.
These all succeed:
pip install -r requirements.txt # With a randomly typed hash
pip install http://..#md5=random
The text was updated successfully, but these errors were encountered: