File tree 2 files changed +11
-8
lines changed
2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -20,9 +20,9 @@ test = [
20
20
" pytest-httpserver" ,
21
21
" pytest-pyodide" ,
22
22
" pytest-cov" ,
23
- " pytest<8.0.0 " ,
24
- " build==0.7.0 " ,
25
- " pyodide-lock==v0.1.0a8 " ,
23
+ " pytest" ,
24
+ " build" ,
25
+ " pyodide-lock" ,
26
26
]
27
27
28
28
[project .urls ]
Original file line number Diff line number Diff line change @@ -49,12 +49,15 @@ def _read_gzipped_testfile(file: Path) -> bytes:
49
49
50
50
def _build (build_dir , dist_dir ):
51
51
import build
52
- from build .env import IsolatedEnvBuilder
52
+ from build .env import DefaultIsolatedEnv
53
+
54
+ with DefaultIsolatedEnv () as env :
55
+ # https://build.pypa.io/en/stable/api.html#build.ProjectBuilder
56
+ builder = build .ProjectBuilder (
57
+ source_dir = build_dir ,
58
+ python_executable = env .python_executable ,
59
+ )
53
60
54
- with IsolatedEnvBuilder () as env :
55
- builder = build .ProjectBuilder (build_dir )
56
- builder .python_executable = env .executable
57
- builder .scripts_dir = env .scripts_dir
58
61
env .install (builder .build_system_requires )
59
62
builder .build ("wheel" , output_directory = dist_dir )
60
63
You can’t perform that action at this time.
0 commit comments