Skip to content

Commit 143526c

Browse files
authored
Bump to jupyterlite-core 0.2.0a4, handle more log warnings (#72)
* bump to jupyterlite-core 0.2.0a4 * update yarn invocation for warnings * fix sha256sum generation
1 parent 46e26a1 commit 143526c

File tree

9 files changed

+98
-98
lines changed

9 files changed

+98
-98
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
run: python -m pip install -v -e ".[dev,lint]"
3333

3434
- name: Install JS dependencies
35-
run: jlpm --frozen-lockfile
35+
run: jlpm --immutable
3636

3737
- name: Lint the JS
3838
run: jlpm lint:js:check
@@ -50,7 +50,7 @@ jobs:
5050
run: |-
5151
set -eux
5252
cd dist
53-
ls | sort | sha256sum > SHA256SUMS
53+
sha256sum * > SHA256SUMS
5454
cat SHA256SUMS
5555
5656
- name: Build requirements files

.readthedocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ build:
1010

1111
jobs:
1212
pre_build:
13-
- jlpm --frozen-lockfile
13+
- jlpm --immutable
1414
- jlpm build
1515
- jlpm dist
1616
# pre-build the lite site to isolate build errors

jupyterlite_pyodide_kernel/tests/test_piplite.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@
2525

2626
def has_wheel_after_build(an_empty_lite_dir, script_runner):
2727
"""run a build, expecting the fixture wheel to be there"""
28-
build = script_runner.run("jupyter", "lite", "build", cwd=str(an_empty_lite_dir))
28+
build = script_runner.run(["jupyter", "lite", "build"], cwd=str(an_empty_lite_dir))
2929
assert build.success
3030

31-
check = script_runner.run("jupyter", "lite", "check", cwd=str(an_empty_lite_dir))
31+
check = script_runner.run(["jupyter", "lite", "check"], cwd=str(an_empty_lite_dir))
3232
assert check.success
3333

3434
output = an_empty_lite_dir / "_output"
@@ -95,14 +95,14 @@ def test_lite_dir_wheel(an_empty_lite_dir, script_runner):
9595

9696
def test_piplite_cli_fail_missing(script_runner, tmp_path, index_cmd):
9797
path = tmp_path / "missing"
98-
build = script_runner.run(*index_cmd, str(path))
98+
build = script_runner.run([*index_cmd, str(path)])
9999
assert not build.success
100100

101101

102102
def test_piplite_cli_empty(script_runner, tmp_path, index_cmd):
103103
path = tmp_path / "empty"
104104
path.mkdir()
105-
build = script_runner.run(*index_cmd, str(path))
105+
build = script_runner.run([*index_cmd, str(path)])
106106
assert not build.success
107107

108108

@@ -113,7 +113,7 @@ def test_piplite_cli_win(script_runner, tmp_path, index_cmd, in_cwd):
113113
shutil.copy2(WHEELS[0], path / WHEELS[0].name)
114114
kwargs = {"cwd": str(path)} if in_cwd else {}
115115
pargs = [] if in_cwd else [str(path)]
116-
build = script_runner.run(*index_cmd, *pargs, **kwargs)
116+
build = script_runner.run([*index_cmd, *pargs], **kwargs)
117117
assert build.success
118118
assert json.loads((path / "all.json").read_text(encoding="utf-8"))
119119

@@ -127,12 +127,12 @@ def test_validate_config(script_runner, a_lite_config_file):
127127
lite_dir = a_lite_config_file.parent
128128
output = lite_dir / "_output"
129129

130-
build = script_runner.run("jupyter", "lite", "build", cwd=str(lite_dir))
130+
build = script_runner.run(["jupyter", "lite", "build"], cwd=str(lite_dir))
131131
assert build.success
132132
shutil.copy2(output / a_lite_config_file.name, a_lite_config_file)
133133
first_config_data = a_lite_config_file.read_text(**UTF8)
134134

135-
check = script_runner.run("jupyter", "lite", "check", cwd=str(lite_dir))
135+
check = script_runner.run(["jupyter", "lite", "check"], cwd=str(lite_dir))
136136
assert check.success
137137
second_config_data = a_lite_config_file.read_text(**UTF8)
138138
assert first_config_data == second_config_data
@@ -147,10 +147,10 @@ def test_validate_config(script_runner, a_lite_config_file):
147147

148148
third_config_data = json.dumps(whole_file, **JSON_FMT)
149149
a_lite_config_file.write_text(third_config_data, **UTF8)
150-
rebuild = script_runner.run("jupyter", "lite", "build", cwd=str(lite_dir))
150+
rebuild = script_runner.run(["jupyter", "lite", "build"], cwd=str(lite_dir))
151151
assert rebuild.success
152152

153-
recheck = script_runner.run("jupyter", "lite", "check", cwd=str(lite_dir))
153+
recheck = script_runner.run(["jupyter", "lite", "check"], cwd=str(lite_dir))
154154
assert not recheck.success, third_config_data
155155

156156
fourth_config_data = a_lite_config_file.read_text(**UTF8)

jupyterlite_pyodide_kernel/tests/test_pyodide.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,14 @@ def test_pyodide(
5555

5656
kwargs = dict(cwd=str(an_empty_lite_dir), env=env)
5757

58-
status = script_runner.run("jupyter", "lite", "status", *pargs, **kwargs)
58+
status = script_runner.run(["jupyter", "lite", "status", *pargs], **kwargs)
5959
assert status.success, "status did NOT succeed"
6060

61-
build = script_runner.run("jupyter", "lite", "build", *pargs, **kwargs)
61+
build = script_runner.run(["jupyter", "lite", "build", *pargs], **kwargs)
6262
assert build.success, "the build did NOT succeed"
6363

6464
pyodide_path = an_empty_lite_dir / "_output/static/pyodide/pyodide.js"
6565
assert pyodide_path.exists(), "pyodide.js does not exist"
6666

67-
check = script_runner.run("jupyter", "lite", "check", *pargs, **kwargs)
67+
check = script_runner.run(["jupyter", "lite", "check", *pargs], **kwargs)
6868
assert check.success, "the check did NOT succeed"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@jupyterlite/pyodide-kernel-root",
3-
"version": "0.2.0-alpha.0",
3+
"version": "0.2.0-alpha.4",
44
"private": true,
55
"workspaces": {
66
"packages": [

packages/pyodide-kernel-extension/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,14 @@
4747
"watch:labextension": "jupyter labextension watch ."
4848
},
4949
"dependencies": {
50-
"@jupyterlab/coreutils": "^6.0.5",
51-
"@jupyterlite/contents": "^0.2.0-alpha.0",
52-
"@jupyterlite/kernel": "^0.2.0-alpha.0",
50+
"@jupyterlab/coreutils": "^6.0.6",
51+
"@jupyterlite/contents": "^0.2.0-alpha.4",
52+
"@jupyterlite/kernel": "^0.2.0-alpha.4",
5353
"@jupyterlite/pyodide-kernel": "^0.2.0-alpha.2",
54-
"@jupyterlite/server": "^0.2.0-alpha.0"
54+
"@jupyterlite/server": "^0.2.0-alpha.4"
5555
},
5656
"devDependencies": {
57-
"@jupyterlab/builder": "^4.0.5",
57+
"@jupyterlab/builder": "~4.0.6",
5858
"rimraf": "^5.0.1",
5959
"typescript": "~5.2.2"
6060
},

packages/pyodide-kernel/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,14 @@
5252
"watch": "tsc -b --watch"
5353
},
5454
"dependencies": {
55-
"@jupyterlab/coreutils": "^6.0.5",
56-
"@jupyterlite/contents": "^0.2.0-alpha.0",
57-
"@jupyterlite/kernel": "^0.2.0-alpha.0",
55+
"@jupyterlab/coreutils": "^6.0.6",
56+
"@jupyterlite/contents": "^0.2.0-alpha.4",
57+
"@jupyterlite/kernel": "^0.2.0-alpha.4",
5858
"comlink": "^4.4.1"
5959
},
6060
"devDependencies": {
6161
"@babel/core": "^7.22.17",
62-
"@jupyterlab/testutils": "~4.0.5",
62+
"@jupyterlab/testutils": "~4.0.6",
6363
"@types/jest": "^29.5.4",
6464
"esbuild": "^0.19.2",
6565
"jest": "^29.7.0",

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ classifiers = [
3434
"Programming Language :: Python :: 3.11",
3535
]
3636
dependencies = [
37-
"jupyterlite-core >=0.2.0a0,<0.3.0",
37+
"jupyterlite-core >=0.2.0a4,<0.3.0",
3838
"pkginfo"
3939
]
4040

@@ -65,7 +65,7 @@ lint = [
6565
]
6666

6767
test = [
68-
"pytest-console-scripts",
68+
"pytest-console-scripts >=1.4.0",
6969
"pytest-cov",
7070
"pytest-html",
7171
"pytest",

0 commit comments

Comments
 (0)