Use `--no-build-isolation`

This commit is contained in:
messense 2022-01-17 10:02:03 +08:00
parent ce80b7e0f3
commit 081c8082cb
15 changed files with 10 additions and 44 deletions

View File

@ -1,7 +0,0 @@
[tox]
isolated_build = true
[testenv]
description = Run the unit tests under {basepython}
deps = -rrequirements-dev.txt
commands = pytest {posargs}

View File

@ -1,5 +1,5 @@
[template]
ignore = [".tox", ".nox"]
ignore = [".nox"]
[hooks]
pre = [".template/pre-script.rhai"]

View File

@ -4,5 +4,5 @@ import nox
@nox.session
def python(session):
session.install("-rrequirements-dev.txt")
session.install(".")
session.install(".", "--no-build-isolation")
session.run("pytest")

View File

@ -1,7 +0,0 @@
[tox]
isolated_build = true
[testenv]
description = Run the unit tests under {basepython}
deps = -rrequirements-dev.txt
commands = pytest {posargs}

View File

@ -1,5 +1,5 @@
[template]
ignore = [".tox", ".nox"]
ignore = [".nox"]
[hooks]
pre = [".template/pre-script.rhai"]

View File

@ -4,5 +4,5 @@ import nox
@nox.session
def python(session):
session.install("-rrequirements-dev.txt")
session.install(".")
session.install(".", "--no-build-isolation")
session.run("pytest")

View File

@ -1,7 +0,0 @@
[tox]
isolated_build = true
[testenv]
description = Run the unit tests under {basepython}
deps = -rrequirements-dev.txt
commands = pytest {posargs}

View File

@ -1,5 +1,5 @@
[template]
ignore = [".tox", ".nox"]
ignore = [".nox"]
[hooks]
pre = [".template/pre-script.rhai"]

View File

@ -4,5 +4,5 @@ import nox
@nox.session
def python(session):
session.install("-rrequirements-dev.txt")
session.install("-e", ".")
session.install("-e", ".", "--no-build-isolation")
session.run("pytest")

View File

@ -1,7 +0,0 @@
[tox]
isolated_build = true
[testenv]
description = Run the unit tests under {basepython}
deps = -rrequirements-dev.txt
commands = pytest {posargs}

View File

@ -1,5 +1,5 @@
[template]
ignore = [".tox", ".nox"]
ignore = [".nox"]
[hooks]
pre = [".template/pre-script.rhai"]

View File

@ -4,5 +4,5 @@ import nox
@nox.session
def python(session):
session.install("-rrequirements-dev.txt")
session.install("-e", ".")
session.install("-e", ".", "--no-build-isolation")
session.run("pytest")

View File

@ -1,6 +0,0 @@
import nox
@nox.session(python=["3.7", "3.8", "3.9", "3.10"])
def test(session):
session.run("cargo", "test", external=True)

View File

@ -4,5 +4,5 @@ import nox
@nox.session
def python(session):
session.install("-rrequirements-dev.txt")
session.install("-e", ".")
session.install("-e", ".", "--no-build-isolation")
session.run("pytest", "--benchmark-sort=name")

View File

@ -4,5 +4,5 @@ import nox
@nox.session
def python(session):
session.install("-rrequirements-dev.txt")
session.install(".")
session.install(".", "--no-build-isolation")
session.run("pytest")