Skip to content

Commit 18bc0ce

Browse files
committed
Run examples with pep489 feature on
1 parent 94bbc31 commit 18bc0ce

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

examples/decorator/noxfile.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@
22

33

44
@nox.session
5-
def python(session):
5+
@nox.parametrize("cargo_features", ['""', "pep489"])
6+
def python(session, cargo_features):
67
session.install("-rrequirements-dev.txt")
78
session.install("maturin")
8-
session.run_always("maturin", "develop")
9+
session.run_always(
10+
"maturin", "develop", f"--cargo-extra-args=--features {cargo_features}"
11+
)
912
session.run("pytest")

examples/maturin-starter/noxfile.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@
22

33

44
@nox.session
5-
def python(session):
5+
@nox.parametrize("cargo_features", ['""', "pep489"])
6+
def python(session, cargo_features):
67
session.install("-rrequirements-dev.txt")
78
session.install("maturin")
8-
session.run_always("maturin", "develop")
9+
session.run_always(
10+
"maturin", "develop", f"--cargo-extra-args=--features {cargo_features}"
11+
)
912
session.run("pytest")

examples/word-count/noxfile.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,13 @@
44

55

66
@nox.session
7-
def test(session):
7+
@nox.parametrize("cargo_features", ['""', "pep489"])
8+
def test(session, cargo_features):
89
session.install("-rrequirements-dev.txt")
910
session.install("maturin")
10-
session.run_always("maturin", "develop")
11+
session.run_always(
12+
"maturin", "develop", f"--cargo-extra-args=--features {cargo_features}"
13+
)
1114
session.run("pytest")
1215

1316

0 commit comments

Comments
 (0)