Add a pyproject.toml to the windows arm64 cross compile test

This commit is contained in:
Joe Rickerby
2022-07-04 15:29:30 +01:00
parent 36442d5caa
commit b5b8e128d0
+13 -1
View File
@@ -1,3 +1,5 @@
import textwrap
import pytest
from . import test_projects, utils
@@ -5,10 +7,20 @@ from . import test_projects, utils
basic_project = test_projects.new_c_project()
def test_wheel_tag_is_correct_when_using_windows_cross_compile(tmp_path):
@pytest.mark.parametrize("use_pyproject_toml", [True, False])
def test_wheel_tag_is_correct_when_using_windows_cross_compile(tmp_path, use_pyproject_toml):
if utils.platform != "windows":
pytest.skip("This test is only relevant to Windows")
if use_pyproject_toml:
basic_project.files["pyproject.toml"] = textwrap.dedent(
"""
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
"""
)
project_dir = tmp_path / "project"
basic_project.generate(project_dir)