11[build-system ]
22requires = [
3- " hatchling" ,
4- " jupyterlab~=3.0" ,
3+ " hatchling>=1.5.0" ,
4+ " jupyterlab>=4.0,<5" ,
5+ " pip" ,
56]
67build-backend = " hatchling.build"
78
@@ -21,7 +22,7 @@ keywords = [
2122classifiers = [
2223 " Framework :: Jupyter" ,
2324 " Framework :: Jupyter :: JupyterLab" ,
24- " Framework :: Jupyter :: JupyterLab :: 3 " ,
25+ " Framework :: Jupyter :: JupyterLab :: 4 " ,
2526 " Framework :: Jupyter :: JupyterLab :: Extensions" ,
2627 " Framework :: Jupyter :: JupyterLab :: Extensions :: Prebuilt" ,
2728 " Intended Audience :: Developers" ,
@@ -36,7 +37,7 @@ classifiers = [
3637 " Programming Language :: Python :: 3.11" ,
3738]
3839dependencies = [
39- " jupyter_server>=1 .0" ,
40+ " jupyter_server>=2 .0" ,
4041 " prometheus_client" ,
4142 " psutil~=5.6" ,
4243 " pyzmq>=19" ,
@@ -61,8 +62,7 @@ Homepage = "https://github.com/jupyter-server/jupyter-resource-usage"
6162
6263[tool .hatch .build .targets .wheel .shared-data ]
6364"jupyter_resource_usage/static" = " share/jupyter/nbextensions/jupyter_resource_usage"
64- "jupyter_resource_usage/labextension/package.json" = " share/jupyter/labextensions/@jupyter-server/resource-usage/package.json"
65- "jupyter_resource_usage/labextension/static" = " share/jupyter/labextensions/@jupyter-server/resource-usage/static"
65+ "jupyter_resource_usage/labextension" = " share/jupyter/labextensions/@jupyter-server/resource-usage"
6666"install.json" = " share/jupyter/labextensions/@jupyter-server/resource-usage/install.json"
6767"jupyter-config/jupyter_server_config.d" = " etc/jupyter/jupyter_server_config.d"
6868"jupyter-config/jupyter_notebook_config.d" = " etc/jupyter/jupyter_notebook_config.d"
@@ -88,20 +88,17 @@ skip-if-exists = [
8888 " jupyter_resource_usage/labextension/static/style.js" ,
8989]
9090
91- [tool .hatch .build .hooks .jupyter-builder .editable- build-kwargs ]
91+ [tool .hatch .build .hooks .jupyter-builder .build-kwargs ]
9292build_cmd = " build:prod"
9393npm = [
9494 " jlpm" ,
9595]
96- force = true
9796
98- [tool .hatch .build .hooks .jupyter-builder .build-kwargs ]
99- build_cmd = " build:prod "
97+ [tool .hatch .build .hooks .jupyter-builder .editable- build-kwargs ]
98+ build_cmd = " build"
10099npm = [
101100 " jlpm" ,
102101]
103- source_dir = " packages/labextension"
104- build_dir = " jupyter_resource_usage/labextension"
105102
106103[tool .tbump .version ]
107104current = " 0.7.2"
@@ -130,7 +127,7 @@ default = ""
130127
131128[tool .jupyter-releaser .hooks ]
132129before-build-npm = [
133- " python -m pip install jupyterlab~=3 .0" ,
130+ " python -m pip install jupyterlab~=4 .0" ,
134131 " jlpm" ,
135132 " jlpm clean" ,
136133 " jlpm build:prod" ,
0 commit comments