Skip to content

Commit

Permalink
Fix hatchling build by adding required sections (#909)
Browse files Browse the repository at this point in the history
This adds the newly required sections to the hatchling build and making
sure the right files get included in the wheel.

See pypa/hatch#1113 for context.
  • Loading branch information
swernli authored Dec 11, 2023
1 parent 2ef271e commit 0a2e0c4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion jupyterlab/pyproject.toml
Original file line number Diff line number Diff line change
@@ -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]
Expand Down Expand Up @@ -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"]

0 comments on commit 0a2e0c4

Please sign in to comment.