Skip to content

Commit

Permalink
configure build backend in integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
RonnyPfannschmidt committed Oct 2, 2023
1 parent e90d13f commit 8c70e1b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion testing/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]:
Expand Down
9 changes: 8 additions & 1 deletion testing/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 8c70e1b

Please sign in to comment.