From e3e5485d3904b94962b8cd821d3ad353c02c1ec3 Mon Sep 17 00:00:00 2001 From: dsarno Date: Tue, 21 Oct 2025 13:56:59 -0700 Subject: [PATCH] Fix/replace pytest anyio with pytest asyncio (#333) * mcp_source.py: use MCPForUnity path and show branch in options * dev(deps): replace pytest-anyio (stub) with pytest-asyncio for tests --- MCPForUnity/UnityMcpServer~/src/pyproject.toml | 2 +- mcp_source.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/MCPForUnity/UnityMcpServer~/src/pyproject.toml b/MCPForUnity/UnityMcpServer~/src/pyproject.toml index 294e9ff..dda99f1 100644 --- a/MCPForUnity/UnityMcpServer~/src/pyproject.toml +++ b/MCPForUnity/UnityMcpServer~/src/pyproject.toml @@ -14,7 +14,7 @@ dependencies = [ [project.optional-dependencies] dev = [ "pytest>=8.0.0", - "pytest-anyio>=0.6.0", + "pytest-asyncio>=0.23", ] [build-system] diff --git a/mcp_source.py b/mcp_source.py index 4b1390e..ae964c9 100755 --- a/mcp_source.py +++ b/mcp_source.py @@ -92,7 +92,7 @@ def write_json(path: pathlib.Path, data: dict) -> None: def build_options(repo_root: pathlib.Path, branch: str, origin_https: str): - upstream = "git+https://github.com/CoplayDev/unity-mcp.git?path=/MCPForUnity" + upstream = "https://github.com/CoplayDev/unity-mcp.git?path=/MCPForUnity" # Ensure origin is https origin = origin_https # If origin is a local file path or non-https, try to coerce to https github if possible @@ -103,9 +103,9 @@ def build_options(repo_root: pathlib.Path, branch: str, origin_https: str): origin_remote = origin return [ ("[1] Upstream main", upstream), - ("[2] Remote current branch", + (f"[2] Remote {branch}", f"{origin_remote}?path=/{BRIDGE_SUBPATH}#{branch}"), - ("[3] Local workspace", + (f"[3] Local {branch}", f"file:{(repo_root / BRIDGE_SUBPATH).as_posix()}"), ]