From 2ff6e2deb97205f7a8802dfb63ebb6f4db97b20b Mon Sep 17 00:00:00 2001 From: Jammy2211 Date: Wed, 7 Oct 2026 12:41:27 +0100 Subject: [PATCH] fix: allow-list setuptools package discovery to autofit* packages.find had only an exclude list, so setuptools packaged every importable directory: a local build/ was re-packaged one level deeper on each build, and docs/ subdirectories leaked into the wheel. include = ["autofit*"] mirrors PyAutoHeart; existing excludes are kept. Refs PyAutoLabs/PyAutoNerves#194 Co-Authored-By: Claude Opus 5.5 --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index e95f5c0ec..c54ec76f2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -66,6 +66,7 @@ Homepage = "https://github.com/PyAutoLabs/PyAutoFit" include-package-data = true [tool.setuptools.packages.find] +include = ["autofit*"] exclude = ["docs", "test_autofit", "test_autofit*"] [tool.setuptools_scm]