backend: pin setuptools package to app/

CI build broke after adding `alembic/` and `db/` directories — flat-layout
auto-discovery saw three top-level dirs and refused to pick. Make it
explicit: only `app/` is a Python package, the rest are ops/migration data.
This commit is contained in:
lekss361 2026-04-26 13:59:54 +03:00
parent a1633bf6db
commit 1f9dde2bf3

View file

@ -40,6 +40,13 @@ dev = [
[tool.uv] [tool.uv]
package = true package = true
# Tell setuptools which directory IS the Python package.
# Without this, having both `app/`, `alembic/`, `db/` at top level confuses
# auto-discovery: "Multiple top-level packages discovered in a flat-layout".
# We only want to package `app/`. `alembic/` and `db/` are operational, not Python packages.
[tool.setuptools.packages.find]
include = ["app*"]
[tool.ruff] [tool.ruff]
target-version = "py312" target-version = "py312"
line-length = 100 line-length = 100