From c66aaf19d18ff9806e5ac3927f4c7ac9134dc26b Mon Sep 17 00:00:00 2001 From: Richard Si <63936253+ichard26@users.noreply.github.com> Date: Sun, 21 Aug 2022 22:21:19 -0400 Subject: [PATCH] pyproject.toml: include subpackages in setuptools config 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 >.< --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 6bf4057..456dd1e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -39,4 +39,4 @@ requires-python = ">=3.7" version = {attr = "pathspec._meta.__version__"} [tool.setuptools.packages.find] -include = ["pathspec"] +include = ["pathspec", "pathspec.*"]