From b5b8e128d0923e6de1cff148b5575777034dbedc Mon Sep 17 00:00:00 2001 From: Joe Rickerby Date: Mon, 4 Jul 2022 15:29:30 +0100 Subject: [PATCH] Add a pyproject.toml to the windows arm64 cross compile test --- test/test_windows.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/test/test_windows.py b/test/test_windows.py index 610cdc6d..0d1231b7 100644 --- a/test/test_windows.py +++ b/test/test_windows.py @@ -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)