From 0c471dc1eccd3af0eda05cbffb71f3092894ae83 Mon Sep 17 00:00:00 2001 From: Jammy2211 Date: Wed, 7 Oct 2026 12:41:28 +0100 Subject: [PATCH] fix: allow-list setuptools package discovery to autolens* 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 = ["autolens*"] mirrors PyAutoHeart; existing excludes are kept. Also ignore build/ in .gitignore (the only library that did not). Refs PyAutoLabs/PyAutoNerves#194 Co-Authored-By: Claude Opus 5.5 --- .gitignore | 1 + pyproject.toml | 1 + 2 files changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index c06ec098b..a58a28802 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,7 @@ pip-selfcheck.json bin/ include/ lib/ +build/ .ipynb_checkpoints .cache .idea diff --git a/pyproject.toml b/pyproject.toml index 98e804325..27c568282 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -41,6 +41,7 @@ Homepage = "https://github.com/PyAutoLabs/PyAutoLens" include-package-data = true [tool.setuptools.packages.find] +include = ["autolens*"] exclude = ["docs", "test_autolens", "test_autolens*"] [tool.setuptools_scm]