Skip to content

Commit 81418b0

Browse files
configure build backend in integration tests
1 parent e90d13f commit 81418b0

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

testing/conftest.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def pytest_configure() -> None:
2020
os.environ["SETUPTOOLS_SCM_DEBUG"] = "1"
2121

2222

23-
VERSION_PKGS = ["setuptools", "setuptools_scm", "packaging"]
23+
VERSION_PKGS = ["setuptools", "setuptools_scm", "packaging", "build", "wheel"]
2424

2525

2626
def pytest_report_header() -> list[str]:

testing/test_integration.py

+8-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,14 @@ def test_pyproject_missing_setup_hook_works(wd: WorkDir, use_scm_version: str) -
112112
)
113113
wd.write(
114114
"pyproject.toml",
115-
"""[build-system]\nrequires=["setuptools", "setuptools_scm"]\n\n[tool]""",
115+
textwrap.dedent(
116+
"""
117+
[build-system]
118+
requires=["setuptools", "setuptools_scm"]
119+
backend = "setuptools.build_meta"
120+
[tool]
121+
"""
122+
),
116123
)
117124

118125
res = subprocess.run(

0 commit comments

Comments
 (0)