1
1
[build-system ]
2
2
build-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 " ]
4
4
5
5
[project ]
6
6
name = " jupyterlab_blockly"
@@ -23,14 +23,15 @@ classifiers = [
23
23
" Programming Language :: Python :: 3.11" ,
24
24
]
25
25
dependencies = [
26
- " jupyterlab~=3.4 "
26
+ " jupyterlab~=3.6 "
27
27
]
28
28
dynamic = [" version" , " description" , " authors" , " urls" , " keywords" ]
29
29
30
30
[project .optional-dependencies ]
31
31
dev = [
32
32
" click" ,
33
- " jupyter_releaser==0.22"
33
+ " pre-commit" ,
34
+ " jupyter_releaser"
34
35
]
35
36
36
37
[tool .hatch .version ]
@@ -39,9 +40,12 @@ source = "nodejs"
39
40
[tool .hatch .metadata .hooks .nodejs ]
40
41
fields = [" description" , " authors" , " urls" ]
41
42
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"
45
49
46
50
[tool .hatch .build .targets .wheel .shared-data ]
47
51
"jupyterlab_blockly/labextension" = " share/jupyter/labextensions/jupyterlab-blockly-extension"
@@ -57,21 +61,28 @@ ensured-targets = [
57
61
skip-if-exists = [" jupyterlab_blockly/labextension/static/style.js" ]
58
62
59
63
[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"
65
64
npm = [" jlpm" ]
66
- build_dir = " jupyterlab_blockly/labextension"
65
+ build_cmd = " build:prod"
66
+ editable_build_cmd = " install:extension"
67
67
68
68
[tool .jupyter-releaser .options ]
69
69
version-cmd = " python scripts/bump-version.py --force"
70
70
71
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" ]
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
+ " jlpm clean:all" ,
81
+ # Build the assets
82
+ " jlpm build:prod" ,
83
+ # Clean the build artifacts to not include them in sdist
84
+ " jlpm clean:lib"
85
+ ]
75
86
76
87
[tool .check-wheel-contents ]
77
88
ignore = [" W002" ]
0 commit comments