From 116184b34e5cddff677695623c42661e4bcaf624 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Collonval?= Date: Sun, 11 Dec 2022 17:29:33 +0100 Subject: [PATCH] Fix tests and bundling --- README.md | 2 +- package.json | 1 + pyproject.toml | 5 ++++- ui-tests/README.md | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 8ecfb1b..d765d40 100644 --- a/README.md +++ b/README.md @@ -87,7 +87,7 @@ jlpm test #### Integration tests -This extension uses [Playwright](https://playwright.dev/docs/intro/) for the integration tests (aka user level tests). +This extension uses [Playwright](https://playwright.dev/docs/intro) for the integration tests (aka user level tests). More precisely, the JupyterLab helper [Galata](https://github.com/jupyterlab/jupyterlab/tree/master/galata) is used to handle testing the extension in JupyterLab. More information are provided within the [ui-tests](./ui-tests/README.md) README. diff --git a/package.json b/package.json index a544c1d..5bf9223 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "jupyterlab-extension" ], "private": true, + "files": [], "workspaces": { "packages": [ "app", diff --git a/pyproject.toml b/pyproject.toml index 08675b0..4cd6139 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -42,9 +42,12 @@ source = "nodejs" fields = ["description", "authors", "urls"] [tool.hatch.build.targets.sdist] -artifacts = ["jupyterlab_rise/labextension"] +artifacts = ["jupyterlab_rise/labextension", "jupyterlab_rise/schemas", "jupyterlab_rise/static"] exclude = [".github", "binder"] +[tool.hatch.build.targets.wheel] +artifacts = ["jupyterlab_rise/schemas", "jupyterlab_rise/static"] + [tool.hatch.build.targets.wheel.shared-data] "jupyterlab_rise/labextension" = "share/jupyter/labextensions/jupyterlab-rise" "install.json" = "share/jupyter/labextensions/jupyterlab-rise/install.json" diff --git a/ui-tests/README.md b/ui-tests/README.md index fb6f45d..3544aec 100644 --- a/ui-tests/README.md +++ b/ui-tests/README.md @@ -2,7 +2,7 @@ This folder contains the integration tests of the extension. -They are defined using [Playwright](https://playwright.dev/docs/intro.html) test runner +They are defined using [Playwright](https://playwright.dev/docs/intro) test runner and [Galata](https://github.com/jupyterlab/jupyterlab/tree/master/galata) helper. The Playwright configuration is defined in [playwright.config.js](./playwright.config.js).