From b6ebcaac7efe483bd5b97c92b3fa96c247bde123 Mon Sep 17 00:00:00 2001 From: "Yuichiro Tachibana (Tsuchiya)" Date: Tue, 19 Sep 2023 15:10:55 +0900 Subject: [PATCH] Upgrade Pyodide to 0.24.0 --- packages/desktop/package.json | 4 ++-- packages/kernel/package.json | 2 +- packages/kernel/src/worker.ts | 2 +- yarn.lock | 9 ++++----- 4 files changed, 8 insertions(+), 9 deletions(-) diff --git a/packages/desktop/package.json b/packages/desktop/package.json index 6f6a84435..ad6cbdaf8 100644 --- a/packages/desktop/package.json +++ b/packages/desktop/package.json @@ -19,7 +19,7 @@ "eject": "craco eject", "start:electron": "tsc -p electron -w", "build:electron": "tsc -p electron", - "build:pyodide": "curl -L https://github.com/pyodide/pyodide/releases/download/0.23.3/pyodide-core-0.23.3.tar.bz2 | tar xj -C ./build --files-from=./pyodide-files.txt", + "build:pyodide": "curl -L https://github.com/pyodide/pyodide/releases/download/0.24.0/pyodide-core-0.24.0.tar.bz2 | tar xj -C ./build --files-from=./pyodide-files.txt", "build:bin": "./scripts/build_bin.js && sed -i'' -e '1 s/^#!.*$/#!\\/usr\\/bin\\/env node/' ./bin/*.js", "typecheck": "yarn tsc --noEmit -p electron", "start": "concurrently \"cross-env BROWSER=none yarn start:web\" \"wait-on http://localhost:3000 && yarn start:electron\" \"wait-on http://localhost:3000 && tsc -p electron && cross-env NODE_ENV=\"development\" electron .\"", @@ -53,7 +53,7 @@ "dependencies": { "fs-extra": "^10.1.0", "node-fetch": "2", - "pyodide": "0.23.3", + "pyodide": "0.24.0", "yargs": "^17.5.1" }, "devDependencies": { diff --git a/packages/kernel/package.json b/packages/kernel/package.json index a5e5773fd..7ddf05f9f 100644 --- a/packages/kernel/package.json +++ b/packages/kernel/package.json @@ -27,7 +27,7 @@ "eslint": "^8.33.0", "eslint-plugin-react": "^7.30.1", "eslint-plugin-react-hooks": "^4.6.0", - "pyodide": "0.23.3", + "pyodide": "0.24.0", "typescript": "^4.9.4", "vitest": "^0.21.1" }, diff --git a/packages/kernel/src/worker.ts b/packages/kernel/src/worker.ts index 375ecaa03..a9561b159 100644 --- a/packages/kernel/src/worker.ts +++ b/packages/kernel/src/worker.ts @@ -58,7 +58,7 @@ async function loadPyodideAndPackages() { console.debug("Import the entrypoint script."); importScripts( pyodideEntrypointUrl ?? - "https://cdn.jsdelivr.net/pyodide/v0.23.3/full/pyodide.js" + "https://cdn.jsdelivr.net/pyodide/v0.24.0/full/pyodide.js" ); console.debug("Loading Pyodide"); diff --git a/yarn.lock b/yarn.lock index 1a04b271d..52d8350b8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -19356,13 +19356,12 @@ pxls@^2.0.0: is-buffer "^2.0.3" to-uint8 "^1.4.1" -pyodide@0.23.3: - version "0.23.3" - resolved "https://registry.yarnpkg.com/pyodide/-/pyodide-0.23.3.tgz#eb123f3d9d1223b6194fe965edf2f83cf2a9c87c" - integrity sha512-t95Nu73ENjwoRhThmxvZIHMD7GXTJ3uOt/E0sJ1TxjBvoU/qPys4SV08FtZBMEnpMRKFzE4uecvx2c0qybSZhw== +pyodide@0.24.0: + version "0.24.0" + resolved "https://registry.yarnpkg.com/pyodide/-/pyodide-0.24.0.tgz#d53808acc58380586557177e7fa0eb795c34986b" + integrity sha512-k2TzIbAYQ/ucme0LYv4KmxKDR15m68/3pvPKmUVtdpzn6K9Qt1NLHeZI1RErWJE6PtlQI8UA0Q21wrtu3XPUMg== dependencies: base-64 "^1.0.0" - node-fetch "^2.6.1" ws "^8.5.0" q@^1.1.2, q@^1.5.1: