1+ # Copyright 2023 The MathWorks, Inc.
2+
13[build-system ]
2- requires = [
3- " jupyterlab>=3.1" ,
4- " hatchling"
5- ]
4+ requires = [" jupyterlab>=3.1,<4.0.0" , " hatchling" ]
65build-backend = " hatchling.build"
76
87[project ]
@@ -25,7 +24,7 @@ keywords = [
2524 " MATLAB Web Desktop" ,
2625 " Remote MATLAB Web Access" ,
2726 " JupyterLab" ,
28- " MATLAB Kernel for Jupyter"
27+ " MATLAB Kernel for Jupyter" ,
2928]
3029classifiers = [
3130 " Framework :: Jupyter" ,
@@ -42,14 +41,30 @@ dependencies = [
4241 " jupyter-server-proxy" ,
4342 " jupyter-contrib-nbextensions" ,
4443 " matlab-proxy>=0.2.9" ,
45- " requests"
44+ " requests" ,
4645]
4746
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+
4860[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" ,
5266]
67+ exclude = [" .github" ]
5368
5469[tool .hatch .build .targets .wheel .shared-data ]
5570"src/jupyter_matlab_labextension/jupyter_matlab_labextension/labextension" = " share/jupyter/labextensions/jupyter_matlab_labextension"
@@ -58,11 +73,6 @@ packages = [
5873"img/logo-64x64.png" = " share/jupyter/kernels/jupyter_matlab_kernel/logo-64x64.png"
5974"img/logo-svg.svg" = " share/jupyter/kernels/jupyter_matlab_kernel/logo-svg.svg"
6075
61- [tool .hatch .build .targets .sdist ]
62- exclude = [
63- " .github" ,
64- ]
65-
6676[tool .hatch .build .hooks .jupyter-builder ]
6777dependencies = [" hatch-jupyter-builder>=0.8.1" ]
6878build-function = " hatch_jupyter_builder.npm_builder"
@@ -74,32 +84,24 @@ skip-if-exists = [
7484 " src/jupyter_matlab_labextension/jupyter_matlab_labextension/labextension/static/style.js" ,
7585]
7686
77- [tool .hatch .build .hooks .jupyter-builder .editable-build-kwargs ]
78- build_cmd = " install:extension"
79- npm = [
80- " jlpm" ,
81- ]
82-
8387[tool .hatch .build .hooks .jupyter-builder .build-kwargs ]
8488path = " src/jupyter_matlab_labextension"
8589build_cmd = " build:prod"
86- npm = [
87- " jlpm" ,
88- ]
90+ npm = [" jlpm" ]
8991
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" ]
9796
98- [project .entry-points .jupyter_serverproxy_servers ]
99- matlab = " jupyter_matlab_proxy:setup_matlab"
10097
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" ]
103103
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