|
1 | 1 | [build-system] |
2 | | -requires = ["jupyter_packaging~=0.10,<2", "jupyterlab~=3.4"] |
3 | | -build-backend = "jupyter_packaging.build_api" |
| 2 | +build-backend = "hatchling.build" |
| 3 | +requires = ["hatchling>=1.4.0", "hatch-nodejs-version", "jupyterlab~=3.4"] |
4 | 4 |
|
5 | | -[tool.jupyter-packaging.options] |
6 | | -skip-if-exists = ["jupyterlab_blockly/labextension/static/style.js"] |
7 | | -ensured-targets = ["jupyterlab_blockly/labextension/static/style.js", "jupyterlab_blockly/labextension/package.json"] |
| 5 | +[project] |
| 6 | +name = "jupyterlab_blockly" |
| 7 | +readme = "README.md" |
| 8 | +license = { file = "LICENSE" } |
| 9 | +requires-python = ">=3.7" |
| 10 | +classifiers = [ |
| 11 | + "Framework :: Jupyter", |
| 12 | + "Framework :: Jupyter :: JupyterLab", |
| 13 | + "Framework :: Jupyter :: JupyterLab :: 3", |
| 14 | + "Framework :: Jupyter :: JupyterLab :: Extensions", |
| 15 | + "Framework :: Jupyter :: JupyterLab :: Extensions :: Prebuilt", |
| 16 | + "License :: OSI Approved :: BSD License", |
| 17 | + "Programming Language :: Python", |
| 18 | + "Programming Language :: Python :: 3", |
| 19 | + "Programming Language :: Python :: 3.7", |
| 20 | + "Programming Language :: Python :: 3.8", |
| 21 | + "Programming Language :: Python :: 3.9", |
| 22 | + "Programming Language :: Python :: 3.10", |
| 23 | + "Programming Language :: Python :: 3.11", |
| 24 | +] |
| 25 | +dependencies = [ |
| 26 | + "jupyterlab~=3.4" |
| 27 | +] |
| 28 | +dynamic = ["version", "description", "authors", "urls", "keywords"] |
| 29 | + |
| 30 | +[project.optional-dependencies] |
| 31 | +dev = [ |
| 32 | + "click", |
| 33 | + "jupyter_releaser==0.22" |
| 34 | +] |
| 35 | + |
| 36 | +[tool.hatch.version] |
| 37 | +source = "nodejs" |
| 38 | + |
| 39 | +[tool.hatch.metadata.hooks.nodejs] |
| 40 | +fields = ["description", "authors", "urls"] |
8 | 41 |
|
9 | | -[tool.jupyter-packaging.builder] |
10 | | -factory = "jupyter_packaging.npm_builder" |
| 42 | +[tool.hatch.build] |
| 43 | +artifacts = ["package.json", "scripts", "packages", "patches", "jupyterlab_blockly/labextension"] |
| 44 | +exclude = [".github", "binder"] |
| 45 | + |
| 46 | +[tool.hatch.build.targets.wheel.shared-data] |
| 47 | +"jupyterlab_blockly/labextension" = "share/jupyter/labextensions/jupyterlab-blockly-extension" |
| 48 | +"install.json" = "share/jupyter/labextensions/jupyterlab-blockly-extension/install.json" |
| 49 | + |
| 50 | +[tool.hatch.build.hooks.jupyter-builder] |
| 51 | +dependencies = ["hatch-jupyter-builder>=0.5"] |
| 52 | +build-function = "hatch_jupyter_builder.npm_builder" |
| 53 | +ensured-targets = [ |
| 54 | + "jupyterlab_blockly/labextension/static/style.js", |
| 55 | + "jupyterlab_blockly/labextension/package.json", |
| 56 | +] |
| 57 | +skip-if-exists = ["jupyterlab_blockly/labextension/static/style.js"] |
11 | 58 |
|
12 | | -[tool.jupyter-packaging.build-args] |
| 59 | +[tool.hatch.build.hooks.jupyter-builder.build-kwargs] |
13 | 60 | build_cmd = "build:prod" |
14 | 61 | npm = ["jlpm"] |
15 | 62 |
|
16 | | -[tool.check-manifest] |
17 | | -ignore = ["jupyterlab_blockly/labextension/**", "packages/**", "assets/**", "lerna.json", "yarn.lock", ".*", "package-lock.json", "docs/**"] |
18 | | - |
19 | | -[tool.jupyter-releaser.hooks] |
20 | | -before-bump-version = ["python -m pip install jupyterlab~=3.4"] |
21 | | -before-build-npm = ["python -m pip install jupyterlab", "jlpm"] |
| 63 | +[tool.hatch.build.hooks.jupyter-builder.editable-build-kwargs] |
| 64 | +build_cmd = "install:extension" |
| 65 | +npm = ["jlpm"] |
| 66 | +build_dir = "jupyterlab_blockly/labextension" |
22 | 67 |
|
23 | 68 | [tool.jupyter-releaser.options] |
24 | 69 | version-cmd = "python scripts/bump-version.py --force" |
| 70 | + |
| 71 | +[tool.jupyter-releaser.hooks] |
| 72 | +before-bump-version = ["python -m pip install jupyterlab~=3.4", "jlpm"] |
| 73 | +before-build-npm = ["python -m pip install jupyterlab~=3.4", "jlpm", "jlpm build:prod"] |
| 74 | +before-build-python = ["jlpm clean:all"] |
| 75 | + |
| 76 | +[tool.check-wheel-contents] |
| 77 | +ignore = ["W002"] |
0 commit comments