Skip to content

Commit 9aaf461

Browse files
Update pyjs (#17)
* Update pyjs * Update check-release.yml --------- Co-authored-by: Thorsten Beier <[email protected]>
1 parent 803d4e0 commit 9aaf461

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/check-release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
version_spec: next
2828

2929
- name: Upload Distributions
30-
uses: actions/upload-artifact@v3
30+
uses: actions/upload-artifact@v4
3131
with:
3232
name: pyjs-code-runner-releaser-dist-${{ github.run_number }}
3333
path: .jupyter_releaser_checkout/dist

pyjs_code_runner/js/utils.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ async function fetchMounts(pyjs) {
1414
let mounts = await response.json();
1515
pyjs.FS.mkdir("/mount_tarballs");
1616
await Promise.all(mounts.map(mount => fetchMount(pyjs, mount)));
17-
17+
1818
}
1919

2020
async function make_pyjs(print, error) {
2121
var pyjs = await createModule({ print: print, error: print })
22-
22+
2323
await pyjs.bootstrap_from_empack_packed_environment(
2424
`./empack_env_meta.json`, /* packages_json_url */
2525
".", /* package_tarballs_root_url */
@@ -40,7 +40,7 @@ function eval_main_script(pyjs, workdir, filename) {
4040
}
4141
catch (e) {
4242
if (typeof e === "number") {
43-
const msg = pyjs.get_exception_message(e);
43+
const msg = pyjs.extract_exception_message(e);
4444
console.error("error while evaluating main file:", msg)
4545
}
4646
else {

test/conftest.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def env_prefix(tmp_path_factory):
2424
"-c https://repo.mamba.pm/emscripten-forge -c https://repo.mamba.pm/conda-forge"
2525
)
2626
cmd = [
27-
f"""$MAMBA_EXE create {channels} --yes --prefix {env_prefix} --platform=emscripten-32 python numpy pyjs>=2.7.0"""
27+
f"""$MAMBA_EXE create {channels} --yes --prefix {env_prefix} --platform=emscripten-32 python numpy pyjs>=2.7.1"""
2828
]
2929

3030
ret = subprocess.run(cmd, shell=True)

0 commit comments

Comments
 (0)