From c22fd02b835c9301a5b05b25af38766f1c616d3c Mon Sep 17 00:00:00 2001 From: Anderson Bravalheri Date: Fri, 24 May 2024 13:25:37 +0100 Subject: [PATCH] Simplify tool.setuptools.packages.find by using include rule --- pyproject.toml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 7e9e66df9f..dd2140473a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -158,15 +158,14 @@ PKG-INFO = "setuptools.command.egg_info:write_pkg_info" include-package-data = false [tool.setuptools.packages.find] +include = [ + "setuptools*", + "pkg_resources*", + "_distutils_hack*", +] exclude = [ "*.tests", "*.tests.*", - "tools*", - "debian*", - "launcher*", - "newsfragments*", - "docs", - "docs.*", ] namespaces = true