fix(build): declare hatchling wheel file selection for flat layout (#2)
pip install -e . failed with 'Unable to determine which files to ship inside the wheel' — the flat layout has no directory matching the project name (autocad_mcp_pro). Ship server.py plus its root-level imports (config.py, security.py) and the backends/ and engineering/ packages explicitly. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5
parent
712cf00c5c
commit
d0dfa8cf2d
@@ -39,6 +39,11 @@ dev-dependencies = [
|
||||
requires = ["hatchling"]
|
||||
build-backend = "hatchling.build"
|
||||
|
||||
[tool.hatch.build.targets.wheel]
|
||||
# Flat layout: no directory matches the project name, so hatchling needs an
|
||||
# explicit file selection (GH issue #2). server.py imports config + security.
|
||||
only-include = ["server.py", "config.py", "security.py", "backends", "engineering"]
|
||||
|
||||
[tool.ruff]
|
||||
line-length = 100
|
||||
target-version = "py311"
|
||||
|
||||
Reference in New Issue
Block a user