Skip to content

Commit

Permalink
Add tests to setuptools ext-modules
Browse files Browse the repository at this point in the history
  • Loading branch information
abravalheri committed Sep 24, 2024
1 parent f0c2f49 commit d1ea8f3
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/examples/setuptools/11-pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[tool.setuptools]
ext-modules = [
{name = "my.ext", sources = ["hello.c", "world.c"]}
]
3 changes: 3 additions & 0 deletions tests/examples/setuptools/12-pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[[tool.setuptools.ext-modules]]
name = "my.ext"
sources = ["hello.c", "world.c"]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
must not contain {'non-existing-field'}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[[tool.setuptools.ext-modules]]
name = "hello.world"
sources = ["hello.c"]
non-existing-field = "hello"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
must be array
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[[tool.setuptools.ext-modules]]
name = "hello.world"
sources = "hello.c"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
must contain ['name']
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[[tool.setuptools.ext-modules]]
sources = ["hello.c", "world.c"]

0 comments on commit d1ea8f3

Please sign in to comment.