forked from microsoft/qdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
30 lines (24 loc) · 796 Bytes
/
pyproject.toml
File metadata and controls
30 lines (24 loc) · 796 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "qsharp-widgets"
version = "0.0.0"
readme = "README.md"
dependencies = ["anywidget"]
[project.optional-dependencies]
dev = ["watchfiles", "jupyterlab"]
# automatically add the dev feature to the default env (e.g., hatch shell)
[tool.hatch.envs.default]
features = ["dev"]
[tool.hatch.build]
only-packages = true
artifacts = ["src/qsharp_widgets/static/*"]
[tool.hatch.build.hooks.jupyter-builder]
build-function = "hatch_jupyter_builder.npm_builder"
ensured-targets = ["src/qsharp_widgets/static/index.js"]
# skip-if-exists = ["src/qsharp_widgets/static/index.js"]
dependencies = ["hatch-jupyter-builder>=0.5.0"]
[tool.hatch.build.hooks.jupyter-builder.build-kwargs]
npm = "npm"
build_cmd = "build"