From 3b8552854e08ec0e16fff63e3384c24e1e571af0 Mon Sep 17 00:00:00 2001 From: Universe-sudojam <173473046+Universe-sudojam@users.noreply.github.com> Date: Wed, 13 Aug 2025 19:53:44 +0000 Subject: [PATCH] Add Labextension directory to wheel --- pyproject.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 39244e2..3bcd201 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -64,6 +64,9 @@ artifacts = [ ] exclude = ["/.github", "/binder", "node_modules", "assets", "docs", "examples"] +[tool.hatch.build.targets.wheel] +packages = ["voila_gridstack"] + [tool.hatch.build.targets.wheel.shared-data] "voila_gridstack/config/jpserver-voila-gridstack.json" = "etc/jupyter/jupyter_server_config.d/jpserver-voila-gridstack.json" "voila_gridstack/config/nbserver-voila-gridstack.json" = "etc/jupyter/jupyter_notebook_config.d/nbserver-voila-gridstack.json" @@ -73,6 +76,9 @@ exclude = ["/.github", "/binder", "node_modules", "assets", "docs", "examples"] "voila_gridstack/nbextension" = "share/jupyter/nbextensions/voila-gridstack" "voila_gridstack/template" = "share/jupyter/nbconvert/templates/gridstack" +[tool.hatch.build.targets.wheel.force-include] +"voila_gridstack/labextension" = "voila_gridstack/labextension" + [tool.hatch.build.hooks.jupyter-builder] dependencies = ["hatch-jupyter-builder>=0.6.2"] build-function = "hatch_jupyter_builder.npm_builder"