Skip to content

Commit 8cdcda3

Browse files
committed
Add development dependencies to pyproject.toml
- Add [project.optional-dependencies] section with dev group - Include pytest>=8.0.0 and pytest-anyio>=0.6.0 - Add Development Setup section to README-DEV.md with installation and testing instructions
1 parent 386a6cc commit 8cdcda3

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

MCPForUnity/UnityMcpServer~/src/pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ dependencies = [
1111
"tomli>=2.3.0",
1212
]
1313

14+
[project.optional-dependencies]
15+
dev = [
16+
"pytest>=8.0.0",
17+
"pytest-anyio>=0.6.0",
18+
]
19+
1420
[build-system]
1521
requires = ["setuptools>=64.0.0", "wheel"]
1622
build-backend = "setuptools.build_meta"

docs/README-DEV.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,36 @@
55

66
Welcome to the MCP for Unity development environment! This directory contains tools and utilities to streamline MCP for Unity core development.
77

8+
## 🛠️ Development Setup
9+
10+
### Installing Development Dependencies
11+
12+
To contribute or run tests, you need to install the development dependencies:
13+
14+
```bash
15+
# Navigate to the server source directory
16+
cd MCPForUnity/UnityMcpServer~/src
17+
18+
# Install the package in editable mode with dev dependencies
19+
pip install -e .[dev]
20+
```
21+
22+
This installs:
23+
- **Runtime dependencies**: `httpx`, `mcp[cli]`, `pydantic`, `tomli`
24+
- **Development dependencies**: `pytest`, `pytest-anyio`
25+
26+
### Running Tests
27+
28+
```bash
29+
# From the repo root
30+
pytest tests/ -v
31+
```
32+
33+
Or if you prefer using Python module syntax:
34+
```bash
35+
python -m pytest tests/ -v
36+
```
37+
838
## 🚀 Available Development Features
939

1040
### ✅ Development Deployment Scripts

0 commit comments

Comments
 (0)