Skip to content

Commit ec0b05c

Browse files
authored
Fix missing static files in cad app (#181)
Add static files to build
1 parent ba5bd48 commit ec0b05c

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

pyproject.toml

+8-6
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ dependencies = [
1717
"jupyter_collaboration>=1.0.0a9,<2",
1818
"ypywidgets>=0.1.2,<0.2.0",
1919
"comm>=0.1.2,<0.2.0",
20-
"pydantic"
20+
"pydantic",
2121
]
2222
classifiers = [
2323
"License :: OSI Approved :: BSD License",
@@ -47,11 +47,15 @@ source = "nodejs"
4747
fields = ["description", "authors", "urls"]
4848

4949
[tool.hatch.build.targets.sdist]
50-
artifacts = ["/jupytercad/labextension", "/jupytercad/notebook/objects/_schema/*.py"]
50+
artifacts = [
51+
"/jupytercad/labextension",
52+
"/jupytercad/notebook/objects/_schema/*.py",
53+
"/jupytercad/cadapp/",
54+
]
5155
exclude = ["/.github", "/binder", "node_modules", "examples", "ui-tests"]
5256

5357
[tool.hatch.build.targets.wheel]
54-
artifacts = ["/jupytercad/notebook/objects/_schema/*.py"]
58+
artifacts = ["/jupytercad/notebook/objects/_schema/*.py", "/jupytercad/cadapp/"]
5559

5660
[tool.hatch.build.targets.sdist.force-include]
5761
"./packages" = "packages"
@@ -88,9 +92,7 @@ build_dir = "jupytercad/labextension"
8892
version-cmd = "python scripts/bump-version.py"
8993

9094
[tool.jupyter-releaser.hooks]
91-
before-bump-version = [
92-
"python -m pip install hatch 'jupyterlab>=4.0.0'",
93-
]
95+
before-bump-version = ["python -m pip install hatch 'jupyterlab>=4.0.0'"]
9496
before-build-npm = [
9597
"python -m pip install datamodel-code-generator jupyterlab --pre -U",
9698
"jlpm",

0 commit comments

Comments
 (0)