Skip to content

Commit

Permalink
fix: adding maturin test
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <[email protected]>
  • Loading branch information
henryiii committed Oct 14, 2024
1 parent 0f9ab7f commit c6ce19f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/test_package.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,21 +167,21 @@ def test_pdm_backend(backend: str):
)


@pytest.mark.skip
@pytest.mark.usefixtures("git_dir")
@pytest.mark.parametrize("backend", ["auto", "none"])
def test_maturin(backend: str):
Path("pyproject.toml").write_text(
inspect.cleandoc(f"""
[build-system]
requires = ["maturin"]
requires = ["maturin~=1.0"]
build-backend = "maturin"
[project]
name = "example"
version = "0.1.0"
[tool.maturin]
features = ["pyo3/extension-module"]
exclude = ["ignore*", "some-file", "**/notme.txt"]
[tool.check-sdist]
Expand All @@ -194,6 +194,9 @@ def test_maturin(backend: str):
name = "guessing-game"
version = "0.1.0"
edition = "2021"
[dependencies.pyo3]
version = "0.22.4"
""")
)
Path("src").mkdir()
Expand Down

0 comments on commit c6ce19f

Please sign in to comment.