Make WheelBuilder should_unpack argument explicit

This commit is contained in:
Stéphane Bidoul (ACSONE) 2019-12-12 23:26:51 +01:00
parent deb322d7b7
commit 2eff06e7cc
No known key found for this signature in database
GPG Key ID: BCAB2555446B5B92
3 changed files with 3 additions and 2 deletions

View File

@ -196,6 +196,7 @@ class WheelCommand(RequirementCommand):
)
build_failures = wb.build(
requirement_set.requirements.values(),
should_unpack=False,
)
self.save_wheelnames(
[req.link.filename for req in

View File

@ -369,7 +369,7 @@ class WheelBuilder(object):
def build(
self,
requirements, # type: Iterable[InstallRequirement]
should_unpack=False # type: bool
should_unpack, # type: bool
):
# type: (...) -> List[InstallRequirement]
"""Build wheels.

View File

@ -193,7 +193,7 @@ class TestWheelBuilder(object):
wheel_req = Mock(is_wheel=True, editable=False, constraint=False)
with caplog.at_level(logging.INFO):
wb.build([wheel_req])
wb.build([wheel_req], should_unpack=False)
assert "due to already being wheel" in caplog.text
assert mock_build_one.mock_calls == []