From 0a2e0c43d63367ee7e757a5357eff891b5a04f0a Mon Sep 17 00:00:00 2001 From: "Stefan J. Wernli" Date: Mon, 11 Dec 2023 11:00:29 -0800 Subject: [PATCH] Fix hatchling build by adding required sections (#909) This adds the newly required sections to the hatchling build and making sure the right files get included in the wheel. See https://github.com/pypa/hatch/issues/1113 for context. --- jupyterlab/pyproject.toml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/jupyterlab/pyproject.toml b/jupyterlab/pyproject.toml index fd7ae2a81f..a832d40262 100644 --- a/jupyterlab/pyproject.toml +++ b/jupyterlab/pyproject.toml @@ -1,5 +1,5 @@ [build-system] -requires = ["hatchling>=1.4.0", "jupyterlab==4.0.0", "hatch-nodejs-version"] +requires = ["hatchling>=1.19.0", "jupyterlab==4.0.0", "hatch-nodejs-version"] build-backend = "hatchling.build" [project] @@ -60,5 +60,11 @@ npm = ["jlpm"] source_dir = "src" build_dir = "qsharp-jupyterlab/labextension" +[tool.hatch.build.targets.wheel] +packages = ["qsharp-jupyterlab"] + +[tool.hatch.build.targets.wheel.force-include] +"./setup.py" = "setup.py" + [tool.check-wheel-contents] ignore = ["W002"]