From b728f4d0daed79bce4ac86f1ae12e9d70b9ae8d8 Mon Sep 17 00:00:00 2001 From: FBumann <117816358+FBumann@users.noreply.github.com> Date: Thu, 23 Jul 2026 15:48:18 +0200 Subject: [PATCH] fix(packaging): ship linopy.remote and linopy.persistent in the wheel `[tool.setuptools.packages.find]` include patterns are exact per level, so `include = ["linopy"]` matched only the top-level package and dropped the `linopy.remote` and `linopy.persistent` subpackages from built wheels. Since `linopy/__init__.py` imports `from linopy.remote import RemoteHandler` unconditionally, `import linopy` fails outright on a clean wheel install. Add `"linopy.*"` so subpackages are discovered. Closes #864 Co-Authored-By: Claude Opus 4.8 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index fa158eaa4..a5186be1d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -113,7 +113,7 @@ solvers = [ ] [tool.setuptools.packages.find] -include = ["linopy"] +include = ["linopy", "linopy.*"] [tool.setuptools.package-data] "linopy" = ["py.typed"]