1
+ # Copyright 2023 The MathWorks, Inc.
2
+
1
3
[build-system ]
2
- requires = [
3
- " jupyterlab>=3.1" ,
4
- " hatchling"
5
- ]
4
+ requires = [" jupyterlab>=3.1,<4.0.0" , " hatchling" ]
6
5
build-backend = " hatchling.build"
7
6
8
7
[project ]
@@ -25,7 +24,7 @@ keywords = [
25
24
" MATLAB Web Desktop" ,
26
25
" Remote MATLAB Web Access" ,
27
26
" JupyterLab" ,
28
- " MATLAB Kernel for Jupyter"
27
+ " MATLAB Kernel for Jupyter" ,
29
28
]
30
29
classifiers = [
31
30
" Framework :: Jupyter" ,
@@ -42,14 +41,30 @@ dependencies = [
42
41
" jupyter-server-proxy" ,
43
42
" jupyter-contrib-nbextensions" ,
44
43
" matlab-proxy>=0.2.9" ,
45
- " requests"
44
+ " requests" ,
46
45
]
47
46
47
+ [project .urls ]
48
+ Homepage = " https://github.com/mathworks/jupyter-matlab-proxy"
49
+
50
+ [project .optional-dependencies ]
51
+ dev = [" black" , " ruamel.yaml" , " pytest" , " pytest-cov" ]
52
+
53
+ [project .entry-points .jupyter_serverproxy_servers ]
54
+ matlab = " jupyter_matlab_proxy:setup_matlab"
55
+
56
+ [project .entry-points .matlab_proxy_configs ]
57
+ Jupyter = " jupyter_matlab_proxy.jupyter_config:config"
58
+
59
+
48
60
[tool .hatch .build .targets .wheel ]
49
- packages = [
50
- " src/jupyter_matlab_kernel" ,
51
- " src/jupyter_matlab_proxy"
61
+ packages = [" src/jupyter_matlab_kernel" , " src/jupyter_matlab_proxy" ]
62
+
63
+ [tool .hatch .build .targets .sdist ]
64
+ artifacts = [
65
+ " src/jupyter_matlab_labextension/jupyter_matlab_labextension/labextension" ,
52
66
]
67
+ exclude = [" .github" ]
53
68
54
69
[tool .hatch .build .targets .wheel .shared-data ]
55
70
"src/jupyter_matlab_labextension/jupyter_matlab_labextension/labextension" = " share/jupyter/labextensions/jupyter_matlab_labextension"
@@ -58,11 +73,6 @@ packages = [
58
73
"img/logo-64x64.png" = " share/jupyter/kernels/jupyter_matlab_kernel/logo-64x64.png"
59
74
"img/logo-svg.svg" = " share/jupyter/kernels/jupyter_matlab_kernel/logo-svg.svg"
60
75
61
- [tool .hatch .build .targets .sdist ]
62
- exclude = [
63
- " .github" ,
64
- ]
65
-
66
76
[tool .hatch .build .hooks .jupyter-builder ]
67
77
dependencies = [" hatch-jupyter-builder>=0.8.1" ]
68
78
build-function = " hatch_jupyter_builder.npm_builder"
@@ -74,32 +84,24 @@ skip-if-exists = [
74
84
" src/jupyter_matlab_labextension/jupyter_matlab_labextension/labextension/static/style.js" ,
75
85
]
76
86
77
- [tool .hatch .build .hooks .jupyter-builder .editable-build-kwargs ]
78
- build_cmd = " install:extension"
79
- npm = [
80
- " jlpm" ,
81
- ]
82
-
83
87
[tool .hatch .build .hooks .jupyter-builder .build-kwargs ]
84
88
path = " src/jupyter_matlab_labextension"
85
89
build_cmd = " build:prod"
86
- npm = [
87
- " jlpm" ,
88
- ]
90
+ npm = [" jlpm" ]
89
91
90
- [project .optional-dependencies ]
91
- dev = [
92
- " black" ,
93
- " ruamel.yaml" ,
94
- " pytest" ,
95
- " pytest-cov" ,
96
- ]
92
+ [tool .hatch .build .hooks .jupyter-builder .editable-build-kwargs ]
93
+ path = " src/jupyter_matlab_labextension"
94
+ build_cmd = " install:extension"
95
+ npm = [" jlpm" ]
97
96
98
- [project .entry-points .jupyter_serverproxy_servers ]
99
- matlab = " jupyter_matlab_proxy:setup_matlab"
100
97
101
- [project .entry-points .matlab_proxy_configs ]
102
- Jupyter = " jupyter_matlab_proxy.jupyter_config:config"
98
+ [tool .pytest .ini_options ]
99
+ minversion = " 6.0"
100
+ addopts = " -ra -q"
101
+ testpaths = [" tests" ]
102
+ filterwarnings = [" ignore::DeprecationWarning" , " ignore::RuntimeWarning" ]
103
103
104
- [project .urls ]
105
- Homepage = " https://github.com/mathworks/jupyter-matlab-proxy"
104
+ [tool .coverage .run ]
105
+ source = [" jupyter_matlab_proxy" , " jupyter_matlab_kernel" ]
106
+ omit = [" **/__main__.py" ]
107
+ branch = true
0 commit comments