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>
60 lines
1.2 KiB
TOML
60 lines
1.2 KiB
TOML
[project]
|
|
name = "autocad-mcp-pro"
|
|
version = "1.2.0"
|
|
description = "Production-grade AutoCAD MCP server — COM API + ezdxf dual engine"
|
|
readme = "README.md"
|
|
requires-python = ">=3.11"
|
|
dependencies = [
|
|
"fastmcp>=3.0",
|
|
"ezdxf>=1.3",
|
|
"pydantic>=2.0",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
com = [
|
|
"pywin32>=306",
|
|
"Pillow>=10.0",
|
|
]
|
|
pdf = [
|
|
"matplotlib>=3.8",
|
|
]
|
|
full = [
|
|
"pywin32>=306",
|
|
"Pillow>=10.0",
|
|
"matplotlib>=3.8",
|
|
]
|
|
|
|
[project.scripts]
|
|
autocad-mcp = "server:mcp"
|
|
|
|
[tool.uv]
|
|
dev-dependencies = [
|
|
"pytest>=8.0",
|
|
"pytest-asyncio>=0.23",
|
|
"pytest-cov>=5.0",
|
|
"ruff>=0.8",
|
|
]
|
|
|
|
[build-system]
|
|
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"
|
|
|
|
[tool.ruff.lint]
|
|
select = ["E", "F", "I", "W", "UP", "B"]
|
|
ignore = ["E501"]
|
|
|
|
[tool.ruff.format]
|
|
quote-style = "double"
|
|
|
|
[tool.pytest.ini_options]
|
|
asyncio_mode = "strict"
|