Skip to content

Commit 0a967a3

Browse files
committed
tests: fixes
Signed-off-by: Henry Schreiner <[email protected]>
1 parent 452ddc7 commit 0a967a3

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

noxfile.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,16 +208,18 @@ def build(session: nox.Session) -> None:
208208
@nox.parametrize("example", EXAMPLES, ids=EXAMPLES)
209209
def test_doc_examples(session: nox.Session, example: str) -> None:
210210
_prepare_cmake_ninja(session)
211-
session.install("-e.")
211+
session.install("-e.", "pip")
212212
session.chdir(f"docs/examples/{example}")
213213
reqs = nox.project.load_toml("pyproject.toml")["build-system"]["requires"]
214-
session.install(*reqs, "pytest")
214+
freqs = (r for r in reqs if "scikit-build-core" not in r.replace("_", "-"))
215+
session.install(*freqs, "pytest")
215216
session.install(
216217
".",
217218
"--no-build-isolation",
218219
"--config-settings=cmake.verbose=true",
219220
env={"PYTHONWARNINGS": "error"},
220221
)
222+
session.run("pip", "list")
221223
if Path("../test.py").is_file():
222224
session.run("python", "../test.py")
223225
else:

tests/test_pyproject_pep518.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ def test_pep518_sdist(isolated, package_simple_pyproject_ext):
3434
Requires-Python: >=3.7
3535
Provides-Extra: test
3636
Requires-Dist: pytest>=6.0; extra == "test"
37+
3738
"""
3839
)
3940

@@ -76,6 +77,7 @@ def test_pep518_sdist_with_cmake_config(isolated, cleanup_overwrite):
7677
Metadata-Version: 2.1
7778
Name: sdist_config
7879
Version: 0.1.0
80+
7981
"""
8082
)
8183

0 commit comments

Comments
 (0)