Skip to content

Commit

Permalink
Update pypa/build version used in test (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanking13 authored Nov 24, 2023
1 parent bf18793 commit 61935f7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ build-backend = "setuptools.build_meta"
test = [
"pytest-pyodide==0.52.2",
"pytest-cov",
"build==0.10",
"build>=1.0",
]


Expand Down
11 changes: 6 additions & 5 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,15 @@ def matplotlib_test_decorator(f):
def wheel_path(tmp_path_factory):
# Build a micropip wheel for testing
import build
from build.env import IsolatedEnvBuilder
from build.env import DefaultIsolatedEnv

output_dir = tmp_path_factory.mktemp("wheel")

with IsolatedEnvBuilder() as env:
builder = build.ProjectBuilder(Path(__file__).parent.parent)
builder.python_executable = env.executable
builder.scripts_dir = env.scripts_dir
with DefaultIsolatedEnv() as env:
builder = build.ProjectBuilder(
source_dir=Path(__file__).parent.parent,
python_executable=env.python_executable,
)
env.install(builder.build_system_requires)
builder.build("wheel", output_directory=output_dir)

Expand Down

0 comments on commit 61935f7

Please sign in to comment.