Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 61935f7

Browse files
authored
Update pypa/build version used in test (#45)
1 parent bf18793 commit 61935f7

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ build-backend = "setuptools.build_meta"
2727
test = [
2828
"pytest-pyodide==0.52.2",
2929
"pytest-cov",
30-
"build==0.10",
30+
"build>=1.0",
3131
]
3232

3333

tests/conftest.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,15 @@ def matplotlib_test_decorator(f):
2020
def wheel_path(tmp_path_factory):
2121
# Build a micropip wheel for testing
2222
import build
23-
from build.env import IsolatedEnvBuilder
23+
from build.env import DefaultIsolatedEnv
2424

2525
output_dir = tmp_path_factory.mktemp("wheel")
2626

27-
with IsolatedEnvBuilder() as env:
28-
builder = build.ProjectBuilder(Path(__file__).parent.parent)
29-
builder.python_executable = env.executable
30-
builder.scripts_dir = env.scripts_dir
27+
with DefaultIsolatedEnv() as env:
28+
builder = build.ProjectBuilder(
29+
source_dir=Path(__file__).parent.parent,
30+
python_executable=env.python_executable,
31+
)
3132
env.install(builder.build_system_requires)
3233
builder.build("wheel", output_directory=output_dir)
3334

0 commit comments

Comments
 (0)