Skip to content

Commit

Permalink
build: Only include code in the wheel
Browse files Browse the repository at this point in the history
The wheel used to also include the documentation, which unhelpfully got
installed into `.../site-packages/docs`. This commit fixes that by
changing the package declaration for setuptools: instead of excluding
what we don't want, we now include explicitly only the actual code
packages. This still makes use of setuptools' discovery to find the
individual submodules of capellambse_context_diagrams, but it won't try
to find code anywhere else.
  • Loading branch information
Wuestengecko committed Sep 19, 2024
1 parent 54d96be commit 9aceb4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ zip-safe = false
"*" = ["py.typed", "*.js"]

[tool.setuptools.packages.find]
exclude = ["LICENSES"]
include = ["capellambse_context_diagrams", "capellambse_context_diagrams.*"]

[tool.setuptools_scm]
# This section must exist for setuptools_scm to work

0 comments on commit 9aceb4c

Please sign in to comment.