Skip to content

Commit 2981ca7

Browse files
committed
Include LICENSE in mcp-types sdist; drop redundant coverage path map
Force-include the repo-root LICENSE into the mcp-types sdist (it builds from src/mcp-types/, so it wasn't picked up), mirroring how httpx2 pulls the root LICENSE into each member. Remove the [tool.coverage.paths] mcp_types block: src/mcp-types/mcp_types lives under src/, so the existing 'source' alias already canonicalizes its local/CI/ Windows paths. Coverage still hits 100%.
1 parent feac453 commit 2981ca7

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

pyproject.toml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -273,12 +273,6 @@ source = [
273273
"/home/runner/work/python-sdk/python-sdk/src/",
274274
'D:\a\python-sdk\python-sdk\src',
275275
]
276-
mcp_types = [
277-
"src/mcp-types/mcp_types/",
278-
"/home/runner/work/python-sdk/python-sdk/src/mcp-types/mcp_types/",
279-
'D:\a\python-sdk\python-sdk\src\mcp-types\mcp_types',
280-
"**/site-packages/mcp_types/",
281-
]
282276

283277
[tool.inline-snapshot]
284278
default-flags = ["disable"]

src/mcp-types/pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,8 @@ vcs = "git"
4747
style = "pep440"
4848
bump = true
4949

50+
[tool.hatch.build.targets.sdist.force-include]
51+
"../../LICENSE" = "LICENSE"
52+
5053
[tool.hatch.build.targets.wheel]
5154
packages = ["mcp_types"]

0 commit comments

Comments
 (0)