Skip to content

Commit

Permalink
Run examples with pep489 feature on
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Mar 30, 2022
1 parent 296d738 commit cfecfd8
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
7 changes: 5 additions & 2 deletions examples/decorator/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@


@nox.session
def python(session):
@nox.parametrize("cargo_features", ['""', "pep489"])
def python(session, cargo_features):
session.install("-rrequirements-dev.txt")
session.install("maturin")
session.run_always("maturin", "develop")
session.run_always(
"maturin", "develop", f"--cargo-extra-args=--features {cargo_features}"
)
session.run("pytest")
7 changes: 5 additions & 2 deletions examples/maturin-starter/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@


@nox.session
def python(session):
@nox.parametrize("cargo_features", ['""', "pep489"])
def python(session, cargo_features):
session.install("-rrequirements-dev.txt")
session.install("maturin")
session.run_always("maturin", "develop")
session.run_always(
"maturin", "develop", f"--cargo-extra-args=--features {cargo_features}"
)
session.run("pytest")
7 changes: 5 additions & 2 deletions examples/word-count/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@


@nox.session
def test(session):
@nox.parametrize("cargo_features", ['""', "pep489"])
def test(session, cargo_features):
session.install("-rrequirements-dev.txt")
session.install("maturin")
session.run_always("maturin", "develop")
session.run_always(
"maturin", "develop", f"--cargo-extra-args=--features {cargo_features}"
)
session.run("pytest")


Expand Down

0 comments on commit cfecfd8

Please sign in to comment.