fix: add extra space after ]

This commit is contained in:
Henry Schreiner
2020-08-14 15:57:42 -04:00
parent 43abc35259
commit 45074a9b3a
2 changed files with 8 additions and 1 deletions
+4 -1
View File
@@ -177,8 +177,11 @@ def pep_518_cp35_workaround(package_dir: Path, env: Dict[str, str]) -> None:
if 'build-system' in data
else []
)
if requirements:
shell(['pip', 'install'] + requirements, env=env)
# Workaround for bug when ]>= is present, #421
requirements = [r.replace("]", "] ") for r in requirements]
call(['pip', 'install'] + requirements, env=env)
def build(options: BuildOptions) -> None:
+4
View File
@@ -27,6 +27,7 @@ basic_project.files[
[build-system]
requires = [
"setuptools >= 42",
"setuptools_scm[toml]>=4.1.2",
"wheel",
"requests==2.22.0; python_version<'3.6'",
"requests==2.23.0; python_version>='3.6'"
@@ -47,3 +48,6 @@ def test_pep518(tmp_path):
# check that the expected wheels are produced
expected_wheels = utils.expected_wheels("spam", "0.1.0")
assert set(actual_wheels) == set(expected_wheels)
assert not (project_dir / "42").exists()
assert not (project_dir / "4.1.2").exists()