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:
parent
a1633bf6db
commit
1f9dde2bf3
1 changed files with 7 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue