mirror of https://github.com/pypa/pip
Remove unused requirement_set argument
This commit is contained in:
parent
e872d2bfb6
commit
de5ec7e884
|
@ -272,7 +272,6 @@ class RequirementCommand(IndexGroupCommand):
|
|||
|
||||
def populate_requirement_set(
|
||||
self,
|
||||
requirement_set, # type: RequirementSet
|
||||
args, # type: List[str]
|
||||
options, # type: Values
|
||||
finder, # type: PackageFinder
|
||||
|
|
|
@ -105,7 +105,6 @@ class DownloadCommand(RequirementCommand):
|
|||
|
||||
requirement_set = RequirementSet()
|
||||
reqs = self.populate_requirement_set(
|
||||
requirement_set,
|
||||
args,
|
||||
options,
|
||||
finder,
|
||||
|
|
|
@ -297,7 +297,7 @@ class InstallCommand(RequirementCommand):
|
|||
|
||||
try:
|
||||
reqs = self.populate_requirement_set(
|
||||
requirement_set, args, options, finder, session,
|
||||
args, options, finder, session,
|
||||
wheel_cache, check_supported_wheels=not options.target_dir,
|
||||
)
|
||||
|
||||
|
|
|
@ -133,7 +133,7 @@ class WheelCommand(RequirementCommand):
|
|||
|
||||
try:
|
||||
reqs = self.populate_requirement_set(
|
||||
requirement_set, args, options, finder, session,
|
||||
args, options, finder, session,
|
||||
wheel_cache
|
||||
)
|
||||
|
||||
|
|
|
@ -164,14 +164,13 @@ class TestRequirementSet(object):
|
|||
"""--require-hashes in a requirements file should make its way to the
|
||||
RequirementSet.
|
||||
"""
|
||||
req_set = RequirementSet()
|
||||
finder = make_test_finder(find_links=[data.find_links])
|
||||
session = finder._link_collector.session
|
||||
command = create_command('install')
|
||||
with requirements_file('--require-hashes', tmpdir) as reqs_file:
|
||||
options, args = command.parse_args(['-r', reqs_file])
|
||||
command.populate_requirement_set(
|
||||
req_set, args, options, finder, session, wheel_cache=None,
|
||||
args, options, finder, session, wheel_cache=None,
|
||||
)
|
||||
assert options.require_hashes
|
||||
|
||||
|
|
Loading…
Reference in New Issue