Skip to content

Commit 2fa505e

Browse files
committed
Test all examples with setuptools based install
1 parent 8ff92d1 commit 2fa505e

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed

examples/html-py-ever/noxfile.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,12 @@ def test(session: nox.Session):
1010
session.install(SETUPTOOLS_RUST, "pytest", "pytest-benchmark", "beautifulsoup4")
1111
session.install("--no-build-isolation", ".")
1212
session.run("pytest", *session.posargs)
13+
14+
15+
@nox.session()
16+
def setuptools_install(session: nox.Session):
17+
session.install("setuptools", "pytest", "pytest-benchmark", "beautifulsoup4")
18+
with session.chdir(SETUPTOOLS_RUST):
19+
session.run("python", "setup.py", "install")
20+
session.run("python", "setup.py", "install")
21+
session.run("pytest", *session.posargs)

examples/namespace_package/noxfile.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,12 @@ def test(session: nox.Session):
1010
session.install(SETUPTOOLS_RUST, "pytest")
1111
session.install("--no-build-isolation", ".")
1212
session.run("pytest", *session.posargs)
13+
14+
15+
@nox.session()
16+
def setuptools_install(session: nox.Session):
17+
session.install("setuptools", "pytest")
18+
with session.chdir(SETUPTOOLS_RUST):
19+
session.run("python", "setup.py", "install")
20+
session.run("python", "setup.py", "install")
21+
session.run("pytest", *session.posargs)

examples/rust_with_cffi/noxfile.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,12 @@ def test(session: nox.Session):
1010
session.install(SETUPTOOLS_RUST, "pytest", "cffi")
1111
session.install("--no-build-isolation", ".")
1212
session.run("pytest", *session.posargs)
13+
14+
15+
@nox.session()
16+
def setuptools_install(session: nox.Session):
17+
session.install("setuptools", "pytest", "cffi")
18+
with session.chdir(SETUPTOOLS_RUST):
19+
session.run("python", "setup.py", "install")
20+
session.run("python", "setup.py", "install")
21+
session.run("pytest", *session.posargs)

0 commit comments

Comments
 (0)