-
Notifications
You must be signed in to change notification settings - Fork 495
/
pyproject.toml
157 lines (141 loc) · 3.79 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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
[build-system]
requires = [
"hatchling>=1.8.1",
"jupyterlab~=4.0",
"jupyter_core",
]
build-backend = "hatchling.build"
[project]
name = "voila"
description = "Voilà turns Jupyter notebooks into standalone web applications"
readme = "README.md"
requires-python = ">=3.8"
authors = [
{ name = "Voila Development Team" },
]
keywords = [
"Jupyter",
"JupyterLab",
"Voila",
]
classifiers = [
"Framework :: Jupyter",
"Framework :: Jupyter :: JupyterLab",
"Framework :: Jupyter :: JupyterLab :: 3",
"Framework :: Jupyter :: JupyterLab :: 4",
"Framework :: Jupyter :: JupyterLab :: Extensions",
"Framework :: Jupyter :: JupyterLab :: Extensions :: Prebuilt",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
dependencies = [
"jupyter_client>=6.1.3,<9",
"jupyter_core>=4.11.0",
"jupyter_server>=1.18,<3",
"jupyterlab_server>=2.3.0,<3",
"nbclient>=0.4.0,<0.8",
"nbconvert>=6.4.5,<8",
"traitlets>=5.0.3,<6",
"websockets>=9.0",
]
dynamic = [
"version",
]
[project.license]
file = "LICENSE"
[project.optional-dependencies]
dev = [
"black",
"flake8",
"hatch",
"jupyter_releaser",
]
test = [
"notebook==6",
"ipywidgets",
"matplotlib",
"mock",
"numpy",
"pandas",
"papermill",
"pytest",
"pytest-tornasync",
]
[project.scripts]
voila = "voila.app:main"
[project.urls]
Homepage = "https://github.com/voila-dashboards/voila"
[tool.hatch.version]
path = "voila/_version.py"
[tool.hatch.build]
artifacts = [
"voila/labextension",
"share/jupyter/voila/templates"
]
[tool.hatch.build.hooks.custom]
path = "hatch_build.py"
[tool.hatch.build.targets.wheel.shared-data]
"etc/jupyter" = "etc/jupyter"
"voila/static" = "share/jupyter/nbextensions/voila"
"voila/labextension" = "share/jupyter/labextensions/@voila-dashboards/jupyterlab-preview"
"install.json" = "share/jupyter/labextensions/@voila-dashboards/jupyterlab-preview/install.json"
"share/jupyter/voila/templates" = "share/jupyter/voila/templates"
[tool.hatch.build.targets.sdist]
exclude = [
".github",
"*.gif",
]
[tool.hatch.build.hooks.jupyter-builder]
dependencies = [
"hatch-jupyter-builder>=0.5.3",
]
build-function = "hatch_jupyter_builder.npm_builder"
ensured-targets = [
"voila/labextension/static/style.js",
"share/jupyter/voila/templates/classic/static/materialcolors.css",
"share/jupyter/voila/templates/classic/static/labvariables.css",
"share/jupyter/voila/templates/reveal/static/materialcolors.css",
"share/jupyter/voila/templates/reveal/static/labvariables.css",
]
skip-if-exists = [
"voila/labextension/static/style.js",
"share/jupyter/voila/templates/classic/static/materialcolors.css",
"share/jupyter/voila/templates/classic/static/labvariables.css",
"share/jupyter/voila/templates/reveal/static/materialcolors.css",
"share/jupyter/voila/templates/reveal/static/labvariables.css",
]
[tool.hatch.build.hooks.jupyter-builder.editable-build-kwargs]
build_cmd = "build"
npm = [
"jlpm",
]
force = true
[tool.hatch.build.hooks.jupyter-builder.build-kwargs]
build_cmd = "build:prod"
npm = [
"jlpm",
]
[tool.jupyter-releaser]
skip = [
"check-links",
]
[tool.jupyter-releaser.hooks]
before-bump-version = [
"python -m pip install hatch jupyterlab~=4.0",
]
before-build-npm = [
"python -m pip install jupyterlab~=4.0",
"jlpm clean",
"jlpm build:prod",
]
before-build-python = [
"jlpm clean",
]
after-draft-release = "bash ./scripts/reset-stable.sh"
[tool.jupyter-releaser.options]
version-cmd = "python scripts/bump-version.py --force"