Skip to content

Commit

Permalink
bump to jupyterlite-core 0.2.0a4
Browse files Browse the repository at this point in the history
  • Loading branch information
bollwyvl committed Oct 3, 2023
1 parent 46e26a1 commit 25ed9c1
Show file tree
Hide file tree
Showing 7 changed files with 95 additions and 95 deletions.
18 changes: 9 additions & 9 deletions jupyterlite_pyodide_kernel/tests/test_piplite.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@

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

check = script_runner.run("jupyter", "lite", "check", cwd=str(an_empty_lite_dir))
check = script_runner.run(["jupyter", "lite", "check"], cwd=str(an_empty_lite_dir))
assert check.success

output = an_empty_lite_dir / "_output"
Expand Down Expand Up @@ -95,14 +95,14 @@ def test_lite_dir_wheel(an_empty_lite_dir, script_runner):

def test_piplite_cli_fail_missing(script_runner, tmp_path, index_cmd):
path = tmp_path / "missing"
build = script_runner.run(*index_cmd, str(path))
build = script_runner.run([*index_cmd, str(path)])
assert not build.success


def test_piplite_cli_empty(script_runner, tmp_path, index_cmd):
path = tmp_path / "empty"
path.mkdir()
build = script_runner.run(*index_cmd, str(path))
build = script_runner.run([*index_cmd, str(path)])
assert not build.success


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

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

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

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

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

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

fourth_config_data = a_lite_config_file.read_text(**UTF8)
Expand Down
6 changes: 3 additions & 3 deletions jupyterlite_pyodide_kernel/tests/test_pyodide.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,14 @@ def test_pyodide(

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

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

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

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

check = script_runner.run("jupyter", "lite", "check", *pargs, **kwargs)
check = script_runner.run(["jupyter", "lite", "check", *pargs], **kwargs)
assert check.success, "the check did NOT succeed"
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jupyterlite/pyodide-kernel-root",
"version": "0.2.0-alpha.0",
"version": "0.2.0-alpha.4",
"private": true,
"workspaces": {
"packages": [
Expand Down
10 changes: 5 additions & 5 deletions packages/pyodide-kernel-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@
"watch:labextension": "jupyter labextension watch ."
},
"dependencies": {
"@jupyterlab/coreutils": "^6.0.5",
"@jupyterlite/contents": "^0.2.0-alpha.0",
"@jupyterlite/kernel": "^0.2.0-alpha.0",
"@jupyterlab/coreutils": "^6.0.6",
"@jupyterlite/contents": "^0.2.0-alpha.4",
"@jupyterlite/kernel": "^0.2.0-alpha.4",
"@jupyterlite/pyodide-kernel": "^0.2.0-alpha.2",
"@jupyterlite/server": "^0.2.0-alpha.0"
"@jupyterlite/server": "^0.2.0-alpha.4"
},
"devDependencies": {
"@jupyterlab/builder": "^4.0.5",
"@jupyterlab/builder": "~4.0.6",
"rimraf": "^5.0.1",
"typescript": "~5.2.2"
},
Expand Down
8 changes: 4 additions & 4 deletions packages/pyodide-kernel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@
"watch": "tsc -b --watch"
},
"dependencies": {
"@jupyterlab/coreutils": "^6.0.5",
"@jupyterlite/contents": "^0.2.0-alpha.0",
"@jupyterlite/kernel": "^0.2.0-alpha.0",
"@jupyterlab/coreutils": "^6.0.6",
"@jupyterlite/contents": "^0.2.0-alpha.4",
"@jupyterlite/kernel": "^0.2.0-alpha.4",
"comlink": "^4.4.1"
},
"devDependencies": {
"@babel/core": "^7.22.17",
"@jupyterlab/testutils": "~4.0.5",
"@jupyterlab/testutils": "~4.0.6",
"@types/jest": "^29.5.4",
"esbuild": "^0.19.2",
"jest": "^29.7.0",
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ classifiers = [
"Programming Language :: Python :: 3.11",
]
dependencies = [
"jupyterlite-core >=0.2.0a0,<0.3.0",
"jupyterlite-core >=0.2.0a4,<0.3.0",
"pkginfo"
]

Expand Down Expand Up @@ -65,7 +65,7 @@ lint = [
]

test = [
"pytest-console-scripts",
"pytest-console-scripts >=1.4.0",
"pytest-cov",
"pytest-html",
"pytest",
Expand Down
Loading

0 comments on commit 25ed9c1

Please sign in to comment.