From 14e9e0a7214c6b637c226fff5187554b731850d1 Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Sun, 16 Feb 2025 20:45:01 +0000 Subject: [PATCH] Specify packages using include rather than exclude This avoids possible duplication if a wheel is built more than once from the same directory. --- pyproject.toml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 81760d48..220d25fd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -85,14 +85,10 @@ csscombine = "cssutils.scripts.csscombine:main" cssparse = "cssutils.scripts.cssparse:main" [tool.setuptools.packages.find] -exclude = [ - # duplicate exclusions for pypa/setuptools#2688 - "docs", - "docs.*", - "examples*", - "sheets", - "sheets.*", - "tools*", +include = [ + "cssutils", + "cssutils.*", + "encutils", ] namespaces = true