-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
pyproject.toml
33 lines (27 loc) · 909 Bytes
/
pyproject.toml
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
31
32
33
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "tldraw"
version = "3.0.0"
dependencies = ["anywidget", "ipylab", "requests", "ipykernel"]
description = "Tldraw for Jupyter"
license = "MIT"
readme = "README.md"
[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/tldraw/static/*", "js/*", "package.json", "node_config.mjs"]
[tool.hatch.build.hooks.jupyter-builder]
build-function = "hatch_jupyter_builder.npm_builder"
# ensured-targets = ["src/tldraw/static/widget.js"]
# skip-if-exists = ["src/tldraw/static/widget.js"]
dependencies = ["hatch-jupyter-builder>=0.5.0"]
[tool.hatch.build.hooks.jupyter-builder.build-kwargs]
npm = "npm"
build_cmd = "build"
path = "js"