From 8c70e1bdb3c0ddf4505c4c9a161f1d509c74db77 Mon Sep 17 00:00:00 2001 From: Ronny Pfannschmidt Date: Mon, 2 Oct 2023 15:50:55 +0200 Subject: [PATCH] configure build backend in integration tests --- testing/conftest.py | 2 +- testing/test_integration.py | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/testing/conftest.py b/testing/conftest.py index 8baec7cc..05ab5344 100644 --- a/testing/conftest.py +++ b/testing/conftest.py @@ -20,7 +20,7 @@ def pytest_configure() -> None: os.environ["SETUPTOOLS_SCM_DEBUG"] = "1" -VERSION_PKGS = ["setuptools", "setuptools_scm", "packaging"] +VERSION_PKGS = ["setuptools", "setuptools_scm", "packaging", "build", "wheel"] def pytest_report_header() -> list[str]: diff --git a/testing/test_integration.py b/testing/test_integration.py index aa9d992d..45ee295d 100644 --- a/testing/test_integration.py +++ b/testing/test_integration.py @@ -112,7 +112,14 @@ def test_pyproject_missing_setup_hook_works(wd: WorkDir, use_scm_version: str) - ) wd.write( "pyproject.toml", - """[build-system]\nrequires=["setuptools", "setuptools_scm"]\n\n[tool]""", + textwrap.dedent( + """ + [build-system] + requires=["setuptools", "setuptools_scm"] + build-backend = "setuptools.build_meta" + [tool] + """ + ), ) res = subprocess.run(