Skip to content

Commit

Permalink
Update Pyodide to v0.26.3 (#1507)
Browse files Browse the repository at this point in the history
  • Loading branch information
riyavsinha authored Oct 29, 2024
1 parent 9b21b0f commit 9b29661
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ jobs:
# NOTE!: as per https://github.com/pydantic/pydantic-core/pull/149 this version needs to match the version
# in node_modules/pyodide/repodata.json, to get the version, run:
# `cat node_modules/pyodide/repodata.json | python -m json.tool | rg platform`
version: '3.1.46'
version: '3.1.58'
actions-cache-folder: emsdk-cache

- run: pip install 'maturin>=1,<2' 'ruff==0.5.0' typing_extensions
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ endif

.PHONY: build-wasm
build-wasm:
@echo 'This requires python 3.11, maturin and emsdk to be installed'
maturin build --release --target wasm32-unknown-emscripten --out dist -i 3.11
@echo 'This requires python 3.12, maturin and emsdk to be installed'
maturin build --release --target wasm32-unknown-emscripten --out dist -i 3.12
ls -lh dist

.PHONY: format
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"main": "tests/emscripten_runner.js",
"dependencies": {
"prettier": "^2.7.1",
"pyodide": "^0.25.0"
"pyodide": "^0.26.3"
},
"scripts": {
"test": "node tests/emscripten_runner.js",
Expand Down
2 changes: 1 addition & 1 deletion wasm-preview/run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ async def main(tests_zip: str, tag_name: str):
# File saved on the GH release
pydantic_core_wheel = (
'https://githubproxy.samuelcolvin.workers.dev/pydantic/pydantic-core/releases/'
f'download/{tag_name}/pydantic_core-{tag_name.lstrip("v")}-cp311-cp311-emscripten_3_1_46_wasm32.whl'
f'download/{tag_name}/pydantic_core-{tag_name.lstrip("v")}-cp312-cp312-emscripten_3_1_58_wasm32.whl'
)
zip_file = ZipFile(BytesIO(base64.b64decode(tests_zip)))
count = 0
Expand Down
2 changes: 1 addition & 1 deletion wasm-preview/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ async function main() {
get(`./run_tests.py?v=${Date.now()}`, 'text'),
// e4cf2e2 commit matches the pydantic-core wheel being used, so tests should pass
get(zip_url, 'blob'),
importScripts('https://cdn.jsdelivr.net/pyodide/v0.25.0/full/pyodide.js'),
importScripts('https://cdn.jsdelivr.net/pyodide/v0.26.3/full/pyodide.js'),
]);

const pyodide = await loadPyodide();
Expand Down

0 comments on commit 9b29661

Please sign in to comment.