-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathpyproject.toml
138 lines (117 loc) · 3.86 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
# Copyright 2023-2025 The MathWorks, Inc.
[build-system]
requires = ["hatchling>=1.5.0", "jupyterlab>=4.0.0,<5", "hatch-nodejs-version>=0.3.2"]
build-backend = "hatchling.build"
[project]
name = "jupyter-matlab-proxy"
version = "0.16.3"
description = "MATLAB Integration for Jupyter"
readme = "README.md"
license = { file = "LICENSE.md" }
requires-python = ">=3.8"
authors = [
{ name = "The MathWorks Inc.", email = "[email protected]" },
]
keywords = [
"Jupyter",
"Jupyter Proxy",
"Jupyter Server Proxy",
"MATLAB",
"MATLAB Integration for Jupyter",
"MATLAB Proxy",
"MATLAB Web Desktop",
"Remote MATLAB Web Access",
"JupyterLab",
"MATLAB Kernel for Jupyter",
]
classifiers = [
"Framework :: Jupyter",
"Framework :: Jupyter :: JupyterLab",
"Intended Audience :: Developers",
"Natural Language :: English",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
dependencies = [
"aiohttp",
"ipykernel",
"jupyter-client",
"jupyter-server-proxy>=4.1.0",
"matlab-proxy>=0.23.3",
"psutil",
"requests",
]
[project.urls]
Homepage = "https://github.com/mathworks/jupyter-matlab-proxy"
[project.optional-dependencies]
dev = [
"black",
"jupyter-kernel-test",
"pytest",
"pytest-aiohttp",
"pytest-asyncio",
"pytest-cov",
"pytest-mock",
"pytest-playwright",
]
[project.scripts]
# Note: If the following name of the script is updated, it should also be updated
# in main function of kernelspec.py
install-matlab-kernelspec = "jupyter_matlab_kernel.kernelspec:main"
[tool.hatch.envs.hatch-test]
features = [
"dev",
]
[[tool.hatch.envs.hatch-test.matrix]]
python = ["3.9", "3.10", "3.11", "3.12", "3.13"]
[project.entry-points.jupyter_serverproxy_servers]
matlab = "jupyter_matlab_proxy:setup_matlab"
[project.entry-points.matlab_proxy_configs]
Jupyter = "jupyter_matlab_proxy.jupyter_config:config"
[tool.hatch.version]
source = "nodejs"
[tool.hatch.build.targets.wheel]
packages = ["src/jupyter_matlab_kernel", "src/jupyter_matlab_proxy"]
[tool.hatch.build.targets.sdist]
artifacts = [
"src/jupyter_matlab_labextension/jupyter_matlab_labextension/labextension",
]
exclude = [".github"]
# Used to call hatch_build.py
[tool.hatch.build.hooks.custom]
[tool.hatch.build.targets.wheel.shared-data]
"src/jupyter_matlab_labextension/jupyter_matlab_labextension/labextension" = "share/jupyter/labextensions/jupyter_matlab_labextension"
"src/jupyter_matlab_labextension/install.json" = "share/jupyter/labextensions/jupyter_matlab_labextension/install.json"
"src/jupyter_matlab_kernel/kernelspec" = "share/jupyter/kernels/jupyter_matlab_kernel"
[tool.hatch.build.hooks.jupyter-builder]
dependencies = ["hatch-jupyter-builder>=0.8.1"]
build-function = "hatch_jupyter_builder.npm_builder"
ensured-targets = [
"src/jupyter_matlab_labextension/jupyter_matlab_labextension/labextension/static/style.js",
"src/jupyter_matlab_labextension/jupyter_matlab_labextension/labextension/package.json",
]
skip-if-exists = [
"src/jupyter_matlab_labextension/jupyter_matlab_labextension/labextension/static/style.js",
]
[tool.hatch.build.hooks.jupyter-builder.build-kwargs]
path = "src/jupyter_matlab_labextension"
build_cmd = "build:prod"
npm = ["jlpm"]
[tool.hatch.build.hooks.jupyter-builder.editable-build-kwargs]
path = "src/jupyter_matlab_labextension"
build_cmd = "install:extension"
npm = ["jlpm"]
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-ra -q"
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
testpaths = ["tests"]
filterwarnings = ["ignore::DeprecationWarning", "ignore::RuntimeWarning"]
[tool.coverage.run]
source = ["jupyter_matlab_proxy", "jupyter_matlab_kernel"]
omit = ["**/__main__.py"]
branch = true