-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
66 lines (57 loc) · 1.49 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "canica"
version = "0.0.19"
requires-python = ">=3.9"
readme = "README.md"
license = { file = "LICENSE" }
dependencies = [
"anywidget>=0.6.5",
"jupyterlab>=4.0.6",
"numpy>=1.24",
"pandas>=2.0",
"pyarrow>=13.0.0",
"pydantic>=2.4.2",
"traitlets>=5.13.0",
"importlib-metadata",
]
[project.optional-dependencies]
test = ["pytest>=7.4.2"]
dev = [
"canica[test]",
"pre-commit>=3.4.0",
"mypy>=1.5.1",
"black>=23.9.1",
"nbstripout>=0.6.1",
"watchfiles>=0.20.0",
"pandas-stubs>=2.1.1.230928",
"jupyterlab>=4.0.7",
]
[tool.hatch.envs.default]
python = "3.11"
type = "virtual"
skip-install = true
[tool.hatch.envs.dev]
template = "default"
skip-install = false
features = ["dev"]
[tool.hatch.envs.test]
template = "default"
skip-install = false
features = ["test"]
[[tool.hatch.envs.test.matrix]]
python = ["3.9", "3.10", "3.11"]
[tool.hatch.build]
artifacts = ["src/canica/static/*"]
[tool.hatch.build.hooks.jupyter-builder]
# This hook runs by default. It can be disabled by running `HATCH_BUILD_NO_HOOKS=true hatch build`.
# This can be useful in environments without npm, e.g. CI.
build-function = "hatch_jupyter_builder.npm_builder"
ensured-targets = ["src/canica/static/widget.js"]
skip-if-exists = ["src/canica/static/widget.js"]
dependencies = ["hatch-jupyter-builder>=0.5.0"]
[tool.hatch.build.hooks.jupyter-builder.build-kwargs]
npm = "npm"
build_cmd = "build"