Package discovery missing in pyproject.toml prevents pip install -e . #5

Closed
opened 2026-05-14 15:30:22 +00:00 by Mark · 0 comments
Owner

Describe the bug
pip install -e ".[test]" fails because pyproject.toml uses flat-layout package discovery but the project root contains multiple directories (app, data, project_state, generated_prompts). Setuptools refuses to proceed due to ambiguity.

To Reproduce

cd ~/Projects/itchbox
pip install -e ".[test]"

Expected behavior
Package installs successfully.

Actual behavior

error: Multiple top-level packages discovered in a flat-layout: ["app", "data", "project_state", "generated_prompts"].

Fix applied
Added [tool.setuptools.packages] find = { include = ["app*"] } to pyproject.toml to explicitly declare the app package.

Environment

  • Python 3.12.3
  • setuptools via pip

Additional context
This also affects the Docker build since the Dockerfile runs the same pip install command.

**Describe the bug** `pip install -e ".[test]"` fails because `pyproject.toml` uses flat-layout package discovery but the project root contains multiple directories (`app`, `data`, `project_state`, `generated_prompts`). Setuptools refuses to proceed due to ambiguity. **To Reproduce** ``` cd ~/Projects/itchbox pip install -e ".[test]" ``` **Expected behavior** Package installs successfully. **Actual behavior** ``` error: Multiple top-level packages discovered in a flat-layout: ["app", "data", "project_state", "generated_prompts"]. ``` **Fix applied** Added `[tool.setuptools.packages] find = { include = ["app*"] }` to pyproject.toml to explicitly declare the app package. **Environment** - Python 3.12.3 - setuptools via pip **Additional context** This also affects the Docker build since the Dockerfile runs the same pip install command.
Mark 2026-05-14 17:10:44 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Mark/itchbox#5
No description provided.