-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to Pyodide 0.23, update mocks (#39)
* Update to Pyodide 0.23.0a1 * Update CDN * bump bottom jupyterlite-core * bump to pyodide 0.23.0 * bump python versions in subpackages * replace upstream fixtures * fix proxy instance check * backport repo checks from #27 * more pytest config * ignore libarchive warning by env var * roll back pytest warning settings --------- Co-authored-by: Jeremy Tuloup <jeremy.tuloup@gmail.com>
- Loading branch information
Showing
18 changed files
with
71 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
"""Validate the integrity of the repo (or source checkout)""" | ||
import json | ||
from pathlib import Path | ||
|
||
import pytest | ||
from jupyterlite_core.constants import UTF8 | ||
|
||
from jupyterlite_pyodide_kernel.constants import PYODIDE_VERSION | ||
|
||
from .conftest import HERE | ||
|
||
PACKAGES = HERE / "../../packages" | ||
KERNEL_PKG = PACKAGES / "pyodide-kernel" | ||
KERNEL_PKG_JSON = KERNEL_PKG / "package.json" | ||
|
||
if not KERNEL_PKG_JSON.exists(): # pragma: no cover | ||
pytest.skip( | ||
"not in a source checkout, skipping repo tests", allow_module_level=True | ||
) | ||
|
||
|
||
def test_pyodide_version(): | ||
kernel_pkg_data = json.loads(KERNEL_PKG_JSON.read_text(**UTF8)) | ||
assert ( | ||
kernel_pkg_data["devDependencies"]["pyodide"] == PYODIDE_VERSION | ||
), f"{kernel_pkg_data} pyodide devDependency is not {PYODIDE_VERSION}" | ||
|
||
|
||
@pytest.fixture | ||
def the_default_pyodide_url(): | ||
return f"https://cdn.jsdelivr.net/pyodide/v{PYODIDE_VERSION}/full/pyodide.js" | ||
|
||
|
||
@pytest.mark.parametrize( | ||
"pkg_path", | ||
[ | ||
"pyodide-kernel-extension/schema/kernel.v0.schema.json", | ||
"pyodide-kernel-extension/src/index.ts", | ||
], | ||
) | ||
def test_pyodide_url(pkg_path: Path, the_default_pyodide_url: str): | ||
assert the_default_pyodide_url in (PACKAGES / pkg_path).read_text(**UTF8) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...s/pyodide-kernel/py/widgetsnbextension3/widgetsnbextension/widgetsnbextension/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
"""A widgetsnbextension mock""" | ||
|
||
__version__ = "3.6.0" | ||
__version__ = "3.6.4" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...s/pyodide-kernel/py/widgetsnbextension4/widgetsnbextension/widgetsnbextension/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
"""A widgetsnbextension mock""" | ||
|
||
__version__ = "4.0.2" | ||
__version__ = "4.0.7" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters