Skip to content

Commit 41b11ed

Browse files
authored
Merge pull request #303 from pathsim/feature/relax-pyodide-pin
Relax Pyodide pin to 0.29.4
2 parents 7cffd36 + 61a64a2 commit 41b11ed

5 files changed

Lines changed: 6 additions & 6 deletions

File tree

scripts/config/pyodide.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"version": "0.26.2",
2+
"version": "0.29.4",
33
"preload": ["numpy", "scipy", "micropip"]
44
}

scripts/extract.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def load_pyodide_config(self) -> dict:
155155
if path.exists():
156156
with open(path, encoding="utf-8") as f:
157157
return json.load(f)
158-
return {"version": "0.26.2", "preload": ["numpy", "scipy", "micropip"]}
158+
return {"version": "0.29.4", "preload": ["numpy", "scipy", "micropip"]}
159159

160160
def discover_toolboxes(self) -> list[Path]:
161161
"""Find all toolbox config directories."""
@@ -882,7 +882,7 @@ def write_dependencies(self, data: dict) -> None:
882882
"",
883883
f"export const PATHVIEW_VERSION = '{pathview_version}';",
884884
"",
885-
f"export const PYODIDE_VERSION = '{pyodide.get('version', '0.26.2')}';",
885+
f"export const PYODIDE_VERSION = '{pyodide.get('version', '0.29.4')}';",
886886
"export const PYODIDE_CDN_URL = `https://cdn.jsdelivr.net/pyodide/v${PYODIDE_VERSION}/full/pyodide.mjs`;",
887887
"",
888888
f"export const PYODIDE_PRELOAD = {json.dumps(pyodide.get('preload', []))} as const;",

src/lib/constants/dependencies.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
export const PATHVIEW_VERSION = '0.8.9';
55

6-
export const PYODIDE_VERSION = '0.26.2';
6+
export const PYODIDE_VERSION = '0.29.4';
77
export const PYODIDE_CDN_URL = `https://cdn.jsdelivr.net/pyodide/v${PYODIDE_VERSION}/full/pyodide.mjs`;
88

99
export const PYODIDE_PRELOAD = ["numpy", "scipy", "micropip"] as const;

src/lib/pyodide/backend/pyodide/worker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
import { PROGRESS_MESSAGES, ERROR_MESSAGES } from '$lib/constants/messages';
1313
import type { REPLRequest, REPLResponse } from '../types';
1414

15-
import type { PyodideInterface } from 'https://cdn.jsdelivr.net/pyodide/v0.26.2/full/pyodide.mjs';
15+
import type { PyodideInterface } from 'https://cdn.jsdelivr.net/pyodide/v0.29.4/full/pyodide.mjs';
1616

1717
let pyodide: PyodideInterface | null = null;
1818
let isInitialized = false;

src/lib/types/modules.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ declare module 'plotly.js-dist-min' {
77
}
88

99
// Pyodide CDN module
10-
declare module 'https://cdn.jsdelivr.net/pyodide/v0.26.2/full/pyodide.mjs' {
10+
declare module 'https://cdn.jsdelivr.net/pyodide/v0.29.4/full/pyodide.mjs' {
1111
interface PyProxy {
1212
toJs(options?: { dict_converter?: typeof Object.fromEntries }): unknown;
1313
destroy(): void;

0 commit comments

Comments
 (0)