Skip to content

Commit

Permalink
fix sdist wheel to include only necessary files
Browse files Browse the repository at this point in the history
  • Loading branch information
MFA-X-AI committed Dec 11, 2023
1 parent 7f9f430 commit eda3f89
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,12 @@ source = "nodejs"
fields = ["description", "authors", "urls"]

[tool.hatch.build.targets.sdist]
include-only = [
"xai_components/",
"xircuits/",
]
artifacts = ["xircuits/labextension"]
exclude = [".github", "binder"]
exclude = [".github", "binder", "node_modules", "lib", ".yarn"]

[tool.hatch.build.targets.wheel.shared-data]
"xircuits/labextension" = "share/jupyter/labextensions/xircuits"
Expand Down Expand Up @@ -95,9 +99,6 @@ ignore = ["W002"]
[project.scripts]
xircuits = "xircuits.start_xircuits:main"

[tool.hatch.build]
ignore-vcs = true

[tool.hatch.build.hooks.custom]
path = "xircuits/hatch_build_hook.py"

Expand All @@ -106,3 +107,4 @@ include = [
"xai_components/",
"xircuits/",
]
artifacts = ["xircuits/labextension"]

0 comments on commit eda3f89

Please sign in to comment.