mirror of
https://github.com/pypa/pip
synced 2023-12-13 21:30:23 +01:00
Remove the -H spelling for --hashes.
dstufft is nervous about blowing a single-char option on something that will usually be copied and pasted anyway. We can always put it back later if it proves to be a pain.
This commit is contained in:
parent
b0ef6ab5b4
commit
f3f73f1c07
|
@ -554,7 +554,7 @@ def _merge_hash(option, opt_str, value, parser):
|
|||
|
||||
hash = partial(
|
||||
Option,
|
||||
'-H', '--hash',
|
||||
'--hash',
|
||||
# Hash values eventually end up in InstallRequirement.hashes due to
|
||||
# __dict__ copying in process_line().
|
||||
dest='hashes',
|
||||
|
|
|
@ -134,7 +134,7 @@ class TestRequirementSet(object):
|
|||
reqset = self.basic_reqset(require_hashes=True)
|
||||
reqset.add_requirement(
|
||||
list(process_line(
|
||||
'git+git://github.com/pypa/pip-test-package -H sha256:12345',
|
||||
'git+git://github.com/pypa/pip-test-package --hash=sha256:123',
|
||||
'file',
|
||||
1))[0])
|
||||
dir_path = data.packages.join('FSPkg')
|
||||
|
@ -189,7 +189,9 @@ class TestRequirementSet(object):
|
|||
(data.packages / 'simple-1.0.tar.gz').abspath)
|
||||
reqset = self.basic_reqset(require_hashes=True)
|
||||
reqset.add_requirement(
|
||||
list(process_line('%s -H sha256:badbad' % file_url, 'file', 1))[0])
|
||||
list(process_line('%s --hash=sha256:badbad' % file_url,
|
||||
'file',
|
||||
1))[0])
|
||||
finder = PackageFinder([data.find_links], [], session=PipSession())
|
||||
assert_raises_regexp(
|
||||
HashErrors,
|
||||
|
|
|
@ -170,8 +170,8 @@ class TestProcessLine(object):
|
|||
"""
|
||||
line = ('SomeProject --hash=sha256:2cf24dba5fb0a30e26e83b2ac5b9e29e1b1'
|
||||
'61e5c1fa7425e73043362938b9824 '
|
||||
'-H sha384:59e1748777448c69de6b800d7a33bbfb9ff1b463e44354c3553'
|
||||
'bcdb9c666fa90125a3c79f90397bdf5f6a13de828684f '
|
||||
'--hash=sha384:59e1748777448c69de6b800d7a33bbfb9ff1b463e44354c'
|
||||
'3553bcdb9c666fa90125a3c79f90397bdf5f6a13de828684f '
|
||||
'--hash=sha256:486ea46224d1bb4fb680f34f7c9ad96a8f24ec88be73ea8'
|
||||
'e5a6c65260e9cb8a7')
|
||||
filename = 'filename'
|
||||
|
|
Loading…
Reference in a new issue