From 1f9dde2bf3e6b60d2419d49d5e11275fd6161a30 Mon Sep 17 00:00:00 2001 From: lekss361 Date: Sun, 26 Apr 2026 13:59:54 +0300 Subject: [PATCH] backend: pin setuptools package to `app/` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- backend/pyproject.toml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/backend/pyproject.toml b/backend/pyproject.toml index 0242be28..ef836a12 100644 --- a/backend/pyproject.toml +++ b/backend/pyproject.toml @@ -40,6 +40,13 @@ dev = [ [tool.uv] 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] target-version = "py312" line-length = 100