Skip to content

Commit 9d29062

Browse files
committed
update pyproject to avoid building enormous wheels
1 parent 031d1a2 commit 9d29062

1 file changed

Lines changed: 10 additions & 28 deletions

File tree

pyproject.toml

Lines changed: 10 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -29,35 +29,19 @@ files = ["requirements.txt"]
2929
[tool.hatch.metadata.hooks.requirements_txt.optional-dependencies]
3030
dev = ["requirements-dev.txt"]
3131

32-
[tool.hatch.build]
33-
include = [
34-
"are/simulation/**/*.py",
35-
"are/simulation/**/*.md",
36-
"are/simulation/gui/client/build/**/*", # Include the built JavaScript files
37-
"are/simulation/gui/client/src/**/*", # Include source files for build process
38-
"are/simulation/gui/client/*.json", # Include package.json and other config files
39-
"are/simulation/gui/client/*.js", # Include config files
40-
"are/simulation/gui/client/*.ts", # Include TypeScript config files
41-
"are/simulation/gui/client/index.html", # Include HTML template
42-
]
32+
33+
[tool.hatch.build.targets.wheel]
34+
only-include = ["are"]
35+
sources = {"are" = "are"}
4336
exclude = [
4437
"are/simulation/gui/client/node_modules/**",
38+
"are/simulation/gui/client/src/**",
39+
"are/simulation/gui/client/.vite/**",
40+
"are/simulation/gui/client/*.json",
41+
"are/simulation/gui/client/*.js",
42+
"are/simulation/gui/client/*.ts",
43+
"are/simulation/gui/client/index.html",
4544
"are/simulation/datasets/**",
46-
"**/__pycache__/**",
47-
"**/*.pyc",
48-
]
49-
50-
[tool.hatch.build.targets.wheel]
51-
packages = ["are"]
52-
53-
[tool.hatch.build.targets.sdist]
54-
include = [
55-
"are",
56-
"build_hooks",
57-
"README.md",
58-
"LICENSE",
59-
"requirements.txt",
60-
"requirements-dev.txt",
6145
]
6246

6347
[[tool.hatch.build.hooks.build-scripts.scripts]]
@@ -66,8 +50,6 @@ work_dir = "."
6650
commands = [
6751
"python build_hooks/build_gui.py",
6852
]
69-
out_dir = "are/simulation/gui/client"
70-
artifacts = ["build/**/*"]
7153

7254
[tool.ruff]
7355

0 commit comments

Comments
 (0)