From 5fab260c33abce2c71b6c18da1ebb170e943f92d Mon Sep 17 00:00:00 2001 From: martinRenou Date: Tue, 4 Feb 2025 16:21:25 +0100 Subject: [PATCH 1/2] Update pyjs --- pyjs_code_runner/js/utils.js | 6 +++--- test/conftest.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pyjs_code_runner/js/utils.js b/pyjs_code_runner/js/utils.js index acb5053..4adb5c6 100644 --- a/pyjs_code_runner/js/utils.js +++ b/pyjs_code_runner/js/utils.js @@ -14,12 +14,12 @@ async function fetchMounts(pyjs) { let mounts = await response.json(); pyjs.FS.mkdir("/mount_tarballs"); await Promise.all(mounts.map(mount => fetchMount(pyjs, mount))); - + } async function make_pyjs(print, error) { var pyjs = await createModule({ print: print, error: print }) - + await pyjs.bootstrap_from_empack_packed_environment( `./empack_env_meta.json`, /* packages_json_url */ ".", /* package_tarballs_root_url */ @@ -40,7 +40,7 @@ function eval_main_script(pyjs, workdir, filename) { } catch (e) { if (typeof e === "number") { - const msg = pyjs.get_exception_message(e); + const msg = pyjs.extract_exception_message(e); console.error("error while evaluating main file:", msg) } else { diff --git a/test/conftest.py b/test/conftest.py index 5a6d201..607a0f8 100644 --- a/test/conftest.py +++ b/test/conftest.py @@ -24,7 +24,7 @@ def env_prefix(tmp_path_factory): "-c https://repo.mamba.pm/emscripten-forge -c https://repo.mamba.pm/conda-forge" ) cmd = [ - f"""$MAMBA_EXE create {channels} --yes --prefix {env_prefix} --platform=emscripten-32 python numpy pyjs>=2.7.0""" + f"""$MAMBA_EXE create {channels} --yes --prefix {env_prefix} --platform=emscripten-32 python numpy pyjs>=2.7.1""" ] ret = subprocess.run(cmd, shell=True) From f2f0c7f3e58262b53f7f0b21489e8caa44769213 Mon Sep 17 00:00:00 2001 From: Thorsten Beier Date: Wed, 16 Apr 2025 11:53:58 +0200 Subject: [PATCH 2/2] Update check-release.yml --- .github/workflows/check-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check-release.yml b/.github/workflows/check-release.yml index 2bb84b4..e265f7c 100644 --- a/.github/workflows/check-release.yml +++ b/.github/workflows/check-release.yml @@ -27,7 +27,7 @@ jobs: version_spec: next - name: Upload Distributions - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: pyjs-code-runner-releaser-dist-${{ github.run_number }} path: .jupyter_releaser_checkout/dist