Skip to content

Commit 70a1684

Browse files
authored
fix: update pyproject.toml to resolve packaging error
The installation was failing due to setuptools discovering multiple top-level modules in the flat project layout. This commit updates the pyproject.toml by explicitly specifying: • The standalone modules ("config.py", "server.py", "unity_connection.py") via the py-modules field. • The "tools" directory as a package via the packages field. These changes resolve the "multiple top-level modules discovered" error encountered during `uv pip install -e .` and ensure a clean, predictable package build.
1 parent 937a950 commit 70a1684

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

Python/pyproject.toml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,21 @@
11
[project]
2-
name = "unity"
2+
name = "unity-mcp"
33
version = "0.1.0"
4-
description = "Add your description here"
4+
description = "Unity MCP Server: A Unity package for Unity Editor integration via the Model Context Protocol (MCP)."
55
readme = "README.md"
66
requires-python = ">=3.12"
77
dependencies = [
8-
"httpx>=0.28.1",
9-
"mcp[cli]>=1.4.1",
8+
"httpx>=0.28.1",
9+
"mcp[cli]>=1.4.1"
1010
]
11+
12+
[build-system]
13+
requires = ["setuptools>=42", "wheel"]
14+
build-backend = "setuptools.build_meta"
15+
16+
[tool.setuptools]
17+
# These are the single-file modules at the root of the Python folder.
18+
py-modules = ["config", "server", "unity_connection"]
19+
20+
# The "tools" subdirectory is a package.
21+
packages = ["tools"]

0 commit comments

Comments
 (0)