Skip to content

Commit 41b85ae

Browse files
fix(packaging): stop setuptools from shipping tools/ and example/ in wheels
Disable implicit namespace discovery and exclude those dirs so dev-only paths like `tools/gen_OX.sh` are not installed as top-level packages. Signed-off-by: Mikel Olasagasti Uranga <mikel@olasagasti.info>
1 parent 0cf8151 commit 41b85ae

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,12 @@ requires = ["setuptools>=77", "setuptools_scm[toml]>=6.2, != 8.0.0"]
7171
write_to = "codespell_lib/_version.py"
7272

7373
[tool.setuptools.packages.find]
74+
namespaces = false
7475
exclude = [
7576
"dist",
7677
"snap",
78+
"tools",
79+
"example",
7780
]
7881

7982
[tool.setuptools.package-data]

0 commit comments

Comments
 (0)