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 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)