From 5f338e737e24318ae1bfa9832ca1518c928ad2f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Collonval?= Date: Thu, 4 Jul 2024 10:16:17 +0200 Subject: [PATCH 1/2] Fix binder --- binder/environment.yml | 6 +++--- binder/postBuild | 5 ++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/binder/environment.yml b/binder/environment.yml index b363f5ee..db4fbea5 100644 --- a/binder/environment.yml +++ b/binder/environment.yml @@ -11,9 +11,9 @@ channels: dependencies: # runtime dependencies - - python >=3.10,<3.11.0a0 - - jupyterlab >=4.0.0,<5 + - python >=3.12,<3.13.0a0 + - jupyterlab >=4.0.0,<4.1.0 # labextension build dependencies - - nodejs >=18,<19 + - nodejs >=20,<21 - pip - wheel diff --git a/binder/postBuild b/binder/postBuild index e881b853..96bd1405 100755 --- a/binder/postBuild +++ b/binder/postBuild @@ -30,9 +30,8 @@ def _(*args, **kwargs): _(sys.executable, "-m", "pip", "check") # install the labextension -_(sys.executable, "-m", "pip", "install", "-e", ".") -_(sys.executable, "-m", "pip", "install", "git+https://github.com/mamba-org/quetz-theme#egg=quetz-theme") -_(sys.executable, "-m", "jupyter", "labextension", "develop", "--overwrite", ".") +_(sys.executable, "-m", "pip", "install", ".") +# _(sys.executable, "-m", "pip", "install", "git+https://github.com/mamba-org/quetz-theme#egg=quetz-theme") # verify the environment the extension didn't break anything _(sys.executable, "-m", "pip", "check") From 68e83c4b3305a923600ee1494750bad0a4a10992 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Collonval?= Date: Thu, 4 Jul 2024 10:58:34 +0200 Subject: [PATCH 2/2] Fix packaging of demo --- packages/lab-example/package.json | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/packages/lab-example/package.json b/packages/lab-example/package.json index 6831bc88..ce823bc4 100644 --- a/packages/lab-example/package.json +++ b/packages/lab-example/package.json @@ -80,6 +80,22 @@ "styleModule": "style/index.js", "jupyterlab": { "extension": true, - "outputDir": "../../jupyter_ui_demo/labextension" + "outputDir": "../../jupyter_ui_demo/labextension", + "@jupyter/react-components": { + "bundled": true, + "singleton": true + }, + "@jupyter/web-components": { + "bundled": true, + "singleton": true + }, + "@microsoft/fast-element": { + "bundled": true, + "singleton": true + }, + "@microsoft/fast-foundation": { + "bundled": true, + "singleton": true + } } -} +} \ No newline at end of file