Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump pyodide from 0.22.1 to 0.27.0 #790

Merged
merged 3 commits into from
Jan 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"devDependencies": {
"@eslint/eslintrc": "^3.2.0",
"@eslint/js": "^9.18.0",
"@pyodide/webpack-plugin": "^1.3.3",
"@types/escape-html": "^1.0.3",
"@types/i18n-js": "^3.8.9",
"@types/jest": "^29.5.10",
Expand Down Expand Up @@ -52,7 +53,7 @@
"escape-html": "^1.0.3",
"file-loader": "^6.2.0",
"i18n-js": "4.5.1",
"pyodide": "^0.22.0",
"pyodide": "^0.27.2",
"pyodide-worker-runner": "1.4.0",
"sync-message": "^0.0.12"
},
Expand Down
3 changes: 2 additions & 1 deletion src/workers/python/PythonWorker.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Backend, RunMode, WorkerDiagnostic } from "../../Backend";
import { BackendEvent } from "../../BackendEvent";
import { PyodideInterface, PyProxy } from "pyodide";
import { PyodideInterface } from "pyodide";
import { PyProxy } from "pyodide/ffi";
import { pyodideExpose, PyodideExtras, loadPyodideAndPackage } from "pyodide-worker-runner";

/* eslint-disable-next-line */
Expand Down
2 changes: 1 addition & 1 deletion src/workers/python/papyros/papyros.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from collections.abc import Awaitable
from contextlib import contextmanager, redirect_stdout, redirect_stderr
from pyodide_worker_runner import install_imports
from pyodide import JsException, create_proxy
from pyodide.ffi import JsException, create_proxy
from .util import to_py
from pyodide.http import pyfetch
from types import ModuleType
Expand Down
4 changes: 4 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const path = require("path");
const TerserPlugin = require('terser-webpack-plugin');
const { PyodidePlugin } = require("@pyodide/webpack-plugin");


const PUBLIC_DIR = "public";
Expand All @@ -10,6 +11,9 @@ module.exports = function (webpackEnv, argv) {
mode = webpackEnv.WEBPACK_SERVE ? 'development' : 'production'
}
return {
plugins: [
new PyodidePlugin()
],
entry: Object.fromEntries([
["App", "./src/App.ts"],
["InputServiceWorker", "./src/InputServiceWorker.ts"]
Expand Down
Loading
Loading