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 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RH2BHCKbDTiYJUMG3rb9nq
This commit is contained in:
Krzysztof kuhy Rudnicki 2026-06-22 22:51:02 +02:00
parent a82047502f
commit 95acf8a376

View File

@ -8,6 +8,11 @@ dependencies = [
"requests>=2.31.0", "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] [tool.ruff]
target-version = "py310" target-version = "py310"
include = ["*.py", "**/*.py"] include = ["*.py", "**/*.py"]