Skip to content

Commit 3707dcd

Browse files
authored
fix wasm preview (#1621)
1 parent fdccecd commit 3707dcd

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ classifiers = [
2727
'Operating System :: MacOS',
2828
'Typing :: Typed',
2929
]
30-
dependencies = ['typing-extensions >=4.6.0,!=4.7.0']
30+
dependencies = ['typing-extensions>=4.6.0,!=4.7.0']
3131
dynamic = ['description', 'license', 'readme', 'version']
3232

3333
[project.urls]

wasm-preview/run_tests.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ async def main(tests_zip: str, tag_name: str):
3737

3838
print(f'Mounted {count} test files, installing dependencies...')
3939

40-
await micropip.install(['dirty-equals', 'hypothesis', 'pytest-speed', 'pytest-mock', pydantic_core_wheel, 'tzdata'])
40+
await micropip.install(
41+
['dirty-equals', 'hypothesis', 'pytest-speed', 'pytest-mock', 'tzdata', 'inline-snapshot', pydantic_core_wheel]
42+
)
4143
importlib.invalidate_caches()
4244

4345
# print('installed packages:')

wasm-preview/worker.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ async function main() {
9797
setupStreams(FS, pyodide._module.TTY);
9898
FS.mkdir('/test_dir');
9999
FS.chdir('/test_dir');
100-
await pyodide.loadPackage(['micropip', 'pytest', 'numpy']);
100+
await pyodide.loadPackage(['micropip', 'pytest', 'numpy', 'pygments']);
101101
if (pydantic_core_version < '2.0.0') await pyodide.loadPackage(['typing-extensions']);
102102
await pyodide.runPythonAsync(python_code, {globals: pyodide.toPy({pydantic_core_version, tests_zip})});
103103
post();

0 commit comments

Comments
 (0)