Add a pyproject.toml to the windows arm64 cross compile test
This commit is contained in:
+13
-1
@@ -1,3 +1,5 @@
|
|||||||
|
import textwrap
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from . import test_projects, utils
|
from . import test_projects, utils
|
||||||
@@ -5,10 +7,20 @@ from . import test_projects, utils
|
|||||||
basic_project = test_projects.new_c_project()
|
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":
|
if utils.platform != "windows":
|
||||||
pytest.skip("This test is only relevant to 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"
|
project_dir = tmp_path / "project"
|
||||||
basic_project.generate(project_dir)
|
basic_project.generate(project_dir)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user