Skip to content

Commit

Permalink
pyproject.toml: include subpackages in setuptools config
Browse files Browse the repository at this point in the history
The glob patterns (include/exclude) must match the entire package name
to take effect, so we need to add a wildcard pattern for subpackages.

Otherwise, any wheels built won't include subpackages (like
pathspec.patterns) and things will break >.<
  • Loading branch information
ichard26 committed Aug 22, 2022
1 parent 9eb2908 commit c66aaf1
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 @@ -39,4 +39,4 @@ requires-python = ">=3.7"
version = {attr = "pathspec._meta.__version__"}

[tool.setuptools.packages.find]
include = ["pathspec"]
include = ["pathspec", "pathspec.*"]

0 comments on commit c66aaf1

Please sign in to comment.