|
1 | 1 | [build-system]
|
2 |
| -requires = ["jupyter_packaging~=0.10", "jupyterlab~=3.0"] |
3 |
| -build-backend = "jupyter_packaging.build_api" |
| 2 | +requires = [ |
| 3 | + "hatchling", |
| 4 | + "jupyterlab~=3.0", |
| 5 | +] |
| 6 | +build-backend = "hatchling.build" |
4 | 7 |
|
5 |
| -[license] |
6 |
| -file="LICENSE" |
| 8 | +[project] |
| 9 | +name = "jupyter-resource-usage" |
| 10 | +description = "Jupyter Extension to show resource usage" |
| 11 | +readme = "README.md" |
| 12 | +requires-python = ">=3.7" |
| 13 | +authors = [ |
| 14 | + { name = "Jupyter Development Team" }, |
| 15 | +] |
| 16 | +keywords = [ |
| 17 | + "IPython", |
| 18 | + "Jupyter", |
| 19 | + "JupyterLab", |
| 20 | +] |
| 21 | +classifiers = [ |
| 22 | + "Framework :: Jupyter", |
| 23 | + "Framework :: Jupyter :: JupyterLab", |
| 24 | + "Framework :: Jupyter :: JupyterLab :: 3", |
| 25 | + "Framework :: Jupyter :: JupyterLab :: Extensions", |
| 26 | + "Framework :: Jupyter :: JupyterLab :: Extensions :: Prebuilt", |
| 27 | + "Intended Audience :: Developers", |
| 28 | + "Intended Audience :: Science/Research", |
| 29 | + "License :: OSI Approved :: BSD License", |
| 30 | + "Programming Language :: Python", |
| 31 | + "Programming Language :: Python :: 3", |
| 32 | + "Programming Language :: Python :: 3.7", |
| 33 | + "Programming Language :: Python :: 3.8", |
| 34 | + "Programming Language :: Python :: 3.9", |
| 35 | + "Programming Language :: Python :: 3.10", |
| 36 | + "Programming Language :: Python :: 3.11", |
| 37 | +] |
| 38 | +dependencies = [ |
| 39 | + "jupyter_server>=1.0", |
| 40 | + "prometheus_client", |
| 41 | + "psutil~=5.6", |
| 42 | +] |
| 43 | +dynamic = ["version"] |
7 | 44 |
|
8 |
| -[tool.jupyter-packaging.options] |
9 |
| -skip-if-exists = ["jupyter_resource_usage/labextension/static/style.js"] |
10 |
| -ensured-targets = ["jupyter_resource_usage/labextension/static/style.js", "jupyter_resource_usage/labextension/package.json"] |
| 45 | +[project.license] |
| 46 | +file = "LICENSE" |
11 | 47 |
|
12 |
| -[tool.jupyter-packaging.builder] |
13 |
| -factory = "jupyter_packaging.npm_builder" |
| 48 | +[project.optional-dependencies] |
| 49 | +dev = [ |
| 50 | + "autopep8", |
| 51 | + "black", |
| 52 | + "flake8", |
| 53 | + "mock", |
| 54 | + "pytest", |
| 55 | + "pytest-cov>=2.6.1", |
| 56 | +] |
14 | 57 |
|
15 |
| -[tool.jupyter-packaging.build-args] |
| 58 | +[project.urls] |
| 59 | +Homepage = "https://github.com/jupyter-server/jupyter-resource-usage" |
| 60 | + |
| 61 | +[tool.hatch.build.targets.wheel.shared-data] |
| 62 | +"jupyter_resource_usage/static" = "share/jupyter/nbextensions/jupyter_resource_usage" |
| 63 | +"jupyter_resource_usage/labextension/package.json" = "share/jupyter/labextensions/@jupyter-server/resource-usage/package.json" |
| 64 | +"jupyter_resource_usage/labextension/static" = "share/jupyter/labextensions/@jupyter-server/resource-usage/static" |
| 65 | +"install.json" = "share/jupyter/labextensions/@jupyter-server/resource-usage/install.json" |
| 66 | +"jupyter-config/jupyter_server_config.d" = "etc/jupyter/jupyter_server_config.d" |
| 67 | +"jupyter-config/jupyter_notebook_config.d" = "etc/jupyter/jupyter_notebook_config.d" |
| 68 | +"jupyter-config/nbconfig/notebook.d" = "etc/jupyter/nbconfig/notebook.d" |
| 69 | + |
| 70 | +[tool.hatch.version] |
| 71 | +path = "jupyter_resource_usage/_version.py" |
| 72 | + |
| 73 | +[tool.hatch.build.targets.sdist] |
| 74 | +artifacts = ["jupyter_resource_usage/labextension"] |
| 75 | +exclude = [".github", "binder"] |
| 76 | + |
| 77 | +[tool.hatch.build.hooks.jupyter-builder] |
| 78 | +dependencies = [ |
| 79 | + "hatch-jupyter-builder>=0.8.2", |
| 80 | +] |
| 81 | +build-function = "hatch_jupyter_builder.npm_builder" |
| 82 | +ensured-targets = [ |
| 83 | + "jupyter_resource_usage/labextension/static/style.js", |
| 84 | + "jupyter_resource_usage/labextension/package.json", |
| 85 | +] |
| 86 | +skip-if-exists = [ |
| 87 | + "jupyter_resource_usage/labextension/static/style.js", |
| 88 | +] |
| 89 | + |
| 90 | +[tool.hatch.build.hooks.jupyter-builder.editable-build-kwargs] |
| 91 | +build_cmd = "build:prod" |
| 92 | +npm = [ |
| 93 | + "jlpm", |
| 94 | +] |
| 95 | +force = true |
| 96 | + |
| 97 | +[tool.hatch.build.hooks.jupyter-builder.build-kwargs] |
16 | 98 | build_cmd = "build:prod"
|
17 |
| -npm = ["jlpm"] |
| 99 | +npm = [ |
| 100 | + "jlpm", |
| 101 | +] |
18 | 102 | source_dir = "packages/labextension"
|
19 | 103 | build_dir = "jupyter_resource_usage/labextension"
|
20 | 104 |
|
@@ -44,7 +128,12 @@ name = "release"
|
44 | 128 | default = ""
|
45 | 129 |
|
46 | 130 | [tool.jupyter-releaser.hooks]
|
47 |
| -before-build-npm = ["python -m pip install jupyterlab~=3.0", "jlpm", "jlpm clean", "jlpm build:prod"] |
| 131 | +before-build-npm = [ |
| 132 | + "python -m pip install jupyterlab~=3.0", |
| 133 | + "jlpm", |
| 134 | + "jlpm clean", |
| 135 | + "jlpm build:prod", |
| 136 | +] |
48 | 137 |
|
49 |
| -[tool.check-manifest] |
50 |
| -ignore = ["binder/**", "packages/**", "*.json", "*.png", "yarn.lock", ".*", "jupyter_resource_usage/labextension/**", "jupyter_resource_usage/static/**"] |
| 138 | +[tool.check-wheel-contents] |
| 139 | +ignore = ["W002", "W004"] |
0 commit comments