-
Notifications
You must be signed in to change notification settings - Fork 121
/
pyproject.toml
133 lines (120 loc) · 2.97 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
[build-system]
requires = [
"hatchling>=1.10.0",
"hatch-nodejs-version>=0.3.0",
"jupyterlab~=3.0",
]
build-backend = "hatchling.build"
[project]
name = "k3d"
readme = "README.md"
requires-python = ">=3.7"
keywords = [
"Jupyter",
"JupyterLab",
"JupyterLab3",
]
classifiers = [
"Framework :: Jupyter",
"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",
]
dependencies = [
"ipywidgets>=7.0.0,<9.0.0",
"msgpack",
"deepcomparer",
"numpy",
"traitlets",
"traittypes",
]
dynamic = ["version", "description", "authors", "urls"]
[project.optional-dependencies]
dev = [
"build",
"flask",
"jupyterlab",
"notebook",
"pixelmatch",
"pytest",
"pytest-notebook",
"pytest-cov",
"selenium",
"webdriver_manager"
]
# these cover all packages necessary to run the notebooks in `examples/`
examples = [
"flask",
"matplotlib",
"mdutils",
"nibabel",
"numba",
"opencv-python",
"pyunpack",
"scikit-image",
"scikit-learn",
"scipy",
"tqdm",
"vtk"
]
[project.license]
file = "LICENSE.txt"
[tool.hatch.build.targets.wheel]
exclude = ["k3d/test"]
artifacts = [
"k3d/static/",
# We don't actually need this, save for `package.json`
"k3d/labextension/",
"js/src/index.*",
]
[tool.hatch.version]
source = "nodejs"
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.build.targets.wheel.shared-data]
"k3d/labextension" = "share/jupyter/labextensions/k3d"
"install.json" = "share/jupyter/labextensions/k3d/install.json"
"k3d/static" = "share/jupyter/nbextensions/k3d"
"k3d/static/standalone.js" = "k3d/static/k3d/standalone.js"
"k3d/static/snapshot_standalone.txt" = "k3d/static/k3d/snapshot_standalone.txt"
"k3d/static/snapshot_online.txt" = "k3d/static/k3d/snapshot_online.txt"
"k3d/static/snapshot_inline.txt" = "k3d/static/k3d/snapshot_inline.txt"
"k3d/static/headless.html" = "k3d/static/k3d/headless.html"
"k3d/static/extension.js" = "k3d/static/k3d/extension.js"
"k3d/static/index.js" = "k3d/static/k3d/index.js"
# this makes the nbextensino auto enable on install
"k3d.json" = "etc/jupyter/nbconfig/notebook.d/k3d.json"
[tool.hatch.build.targets.sdist]
exclude = [
".github",
"docs",
"imgs",
"k3d/test",
"examples",
"binder",
]
artifacts = [
"k3d/static/",
"js/src/index.*",
"k3d/labextension/",
]
[tool.hatch.build.hooks.jupyter-builder]
ensured-targets = [
"k3d/labextension/package.json",
"js/src/index.js",
]
skip-if-exists = ["k3d/labextension/package.json"]
dependencies = [
"hatch-jupyter-builder>=0.6.2",
]
build-function = "hatch_jupyter_builder.npm_builder"
[tool.hatch.build.hooks.jupyter-builder.build-kwargs]
path = "."
build_cmd = "build:prod"
npm = [
"jlpm",
]