From 95acf8a37600711ccffc3e8f0fb494b6fe9fa3d4 Mon Sep 17 00:00:00 2001 From: Krzysztof kuhy Rudnicki Date: Mon, 22 Jun 2026 22:51:02 +0200 Subject: [PATCH] Fix setuptools flat-layout package discovery broken by app/ Adding the Flutter app/ directory made setuptools' auto-discovery see two top-level packages and refuse to build, breaking install.sh's pip step. Co-Authored-By: Claude Sonnet 4.6 Claude-Session: https://claude.ai/code/session_01RH2BHCKbDTiYJUMG3rb9nq --- pyproject.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index a184c8b..e4535dd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,6 +8,11 @@ dependencies = [ "requests>=2.31.0", ] +# Without this, setuptools' flat-layout auto-discovery treats the Flutter +# app/ directory as a second top-level package and refuses to build. +[tool.setuptools.packages.find] +include = ["diet_guard*"] + [tool.ruff] target-version = "py310" include = ["*.py", "**/*.py"]