refactor: minor tweaks from @joerick
This commit is contained in:
@@ -184,7 +184,7 @@ def pep_518_cp35_workaround(package_dir: Path, env: Dict[str, str]) -> None:
|
|||||||
with reqfile.open("w") as f:
|
with reqfile.open("w") as f:
|
||||||
for r in requirements:
|
for r in requirements:
|
||||||
print(r, file=f)
|
print(r, file=f)
|
||||||
call(['pip', 'install', '-r', str(reqfile)], env=env)
|
call(['pip', 'install', '-r', reqfile], env=env)
|
||||||
|
|
||||||
|
|
||||||
def build(options: BuildOptions) -> None:
|
def build(options: BuildOptions) -> None:
|
||||||
|
|||||||
@@ -50,6 +50,8 @@ def test_pep518(tmp_path):
|
|||||||
expected_wheels = utils.expected_wheels("spam", "0.1.0")
|
expected_wheels = utils.expected_wheels("spam", "0.1.0")
|
||||||
assert set(actual_wheels) == set(expected_wheels)
|
assert set(actual_wheels) == set(expected_wheels)
|
||||||
|
|
||||||
|
# These checks ensure an extra file is not created when using custom
|
||||||
|
# workaround; see https://github.com/joerick/cibuildwheel/issues/421
|
||||||
assert not (project_dir / "42").exists()
|
assert not (project_dir / "42").exists()
|
||||||
assert not (project_dir / "4.1.2").exists()
|
assert not (project_dir / "4.1.2").exists()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user