11[build-system ]
22build-backend = " hatchling.build"
3- requires = [" hatchling>=1.4.0" , " hatch-nodejs-version" , " jupyterlab~=3.4 " ]
3+ requires = [" hatchling>=1.4.0" , " hatch-nodejs-version" , " jupyterlab~=3.6 " ]
44
55[project ]
66name = " jupyterlab_blockly"
@@ -23,14 +23,15 @@ classifiers = [
2323 " Programming Language :: Python :: 3.11" ,
2424]
2525dependencies = [
26- " jupyterlab~=3.4 "
26+ " jupyterlab~=3.6 "
2727]
2828dynamic = [" version" , " description" , " authors" , " urls" , " keywords" ]
2929
3030[project .optional-dependencies ]
3131dev = [
3232 " click" ,
33- " jupyter_releaser==0.22"
33+ " pre-commit" ,
34+ " jupyter_releaser"
3435]
3536
3637[tool .hatch .version ]
@@ -39,9 +40,12 @@ source = "nodejs"
3940[tool .hatch .metadata .hooks .nodejs ]
4041fields = [" description" , " authors" , " urls" ]
4142
42- [tool .hatch .build ]
43- artifacts = [" package.json" , " scripts" , " packages" , " patches" , " jupyterlab_blockly/labextension" ]
44- exclude = [" .github" , " binder" ]
43+ [tool .hatch .build .targets .sdist ]
44+ artifacts = [" /jupyterlab_blockly/labextension" ]
45+ exclude = [" /.github" , " /binder" , " node_modules" ]
46+
47+ [tool .hatch .build .targets .sdist .force-include ]
48+ "./packages" = " packages"
4549
4650[tool .hatch .build .targets .wheel .shared-data ]
4751"jupyterlab_blockly/labextension" = " share/jupyter/labextensions/jupyterlab-blockly-extension"
@@ -57,21 +61,27 @@ ensured-targets = [
5761skip-if-exists = [" jupyterlab_blockly/labextension/static/style.js" ]
5862
5963[tool .hatch .build .hooks .jupyter-builder .build-kwargs ]
60- build_cmd = " build:prod"
61- npm = [" jlpm" ]
62-
63- [tool .hatch .build .hooks .jupyter-builder .editable-build-kwargs ]
64- build_cmd = " install:extension"
6564npm = [" jlpm" ]
66- build_dir = " jupyterlab_blockly/labextension"
65+ build_cmd = " build:prod"
66+ editable_build_cmd = " install:extension"
6767
6868[tool .jupyter-releaser .options ]
6969version-cmd = " python scripts/bump-version.py --force"
7070
7171[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" ]
72+ before-bump-version = [
73+ " python -m pip install --pre -U jupyterlab~=3.6" ,
74+ " jlpm"
75+ ]
76+ before-build-npm = [
77+ " jlpm build:prod"
78+ ]
79+ before-build-python = [
80+ # Build the assets
81+ " jlpm build:prod" ,
82+ # Clean the build artifacts to not include them in sdist
83+ " jlpm clean"
84+ ]
7585
7686[tool .check-wheel-contents ]
7787ignore = [" W002" ]
0 commit comments