[build-system]
requires = ["hatchling>=1.19.0", "jupyterlab==4.0.0", "hatch-nodejs-version"]
build-backend = "hatchling.build"

[project]
name = "qsharp-jupyterlab"
version = "0.0.0"
readme = "README.md"
requires-python = ">=3.7"
classifiers = [
    "Framework :: Jupyter",
    "Framework :: Jupyter :: JupyterLab",
    "Framework :: Jupyter :: JupyterLab :: 4",
    "Framework :: Jupyter :: JupyterLab :: Extensions",
    "Framework :: Jupyter :: JupyterLab :: Extensions :: Prebuilt",
    "License :: OSI Approved :: MIT License",
    "Programming Language :: Python",
    "Programming Language :: Python :: 3",
    "Programming Language :: Python :: 3.7",
    "Programming Language :: Python :: 3.8",
    "Programming Language :: Python :: 3.9",
    "Programming Language :: Python :: 3.10",
    "Programming Language :: Python :: 3.11",
]
dependencies = [
]
dynamic = ["description", "authors", "urls", "keywords"]

[tool.hatch.version]
source = "nodejs"

[tool.hatch.metadata.hooks.nodejs]
fields = ["description", "authors", "urls"]

[tool.hatch.build.targets.sdist]
artifacts = ["qsharp-jupyterlab/labextension"]
exclude = [".github", "binder"]

[tool.hatch.build.targets.wheel.shared-data]
"qsharp-jupyterlab/labextension" = "share/jupyter/labextensions/qsharp-jupyterlab"
"install.json" = "share/jupyter/labextensions/qsharp-jupyterlab/install.json"

[tool.hatch.build.hooks.version]
path = "qsharp-jupyterlab/_version.py"

[tool.hatch.build.hooks.jupyter-builder]
dependencies = ["hatch-jupyter-builder>=0.5"]
build-function = "hatch_jupyter_builder.npm_builder"
ensured-targets = [
    "qsharp-jupyterlab/labextension/package.json",
]

[tool.hatch.build.hooks.jupyter-builder.build-kwargs]
build_cmd = "build"
npm = ["jlpm"]

[tool.hatch.build.hooks.jupyter-builder.editable-build-kwargs]
build_cmd = "build:dev"
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"]
