Fix py_docx import error: use setuptools + PYTHONPATH

This commit is contained in:
2026-06-13 15:45:11 +00:00
parent ff034fa97e
commit 8adb8c8fb0
2 changed files with 9 additions and 4 deletions
+6 -4
View File
@@ -1,6 +1,6 @@
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "py-docx-mcp"
@@ -15,10 +15,12 @@ dependencies = [
"html5lib>=1.1",
"regex>=2024.0.0",
"aiofiles>=24.0.0",
"uvicorn>=0.24.0",
]
[project.scripts]
py-docx-mcp = "py_docx.server:main"
[tool.hatch.build.targets.wheel]
packages = ["src/py_docx"]
[tool.setuptools.packages.find]
where = ["src"]
include = ["py_docx*"]