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 testsmain
parent
0397887204
commit
e3e5485d39
|
|
@ -14,7 +14,7 @@ dependencies = [
|
||||||
[project.optional-dependencies]
|
[project.optional-dependencies]
|
||||||
dev = [
|
dev = [
|
||||||
"pytest>=8.0.0",
|
"pytest>=8.0.0",
|
||||||
"pytest-anyio>=0.6.0",
|
"pytest-asyncio>=0.23",
|
||||||
]
|
]
|
||||||
|
|
||||||
[build-system]
|
[build-system]
|
||||||
|
|
|
||||||
|
|
@ -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):
|
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
|
# Ensure origin is https
|
||||||
origin = origin_https
|
origin = origin_https
|
||||||
# If origin is a local file path or non-https, try to coerce to https github if possible
|
# 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
|
origin_remote = origin
|
||||||
return [
|
return [
|
||||||
("[1] Upstream main", upstream),
|
("[1] Upstream main", upstream),
|
||||||
("[2] Remote current branch",
|
(f"[2] Remote {branch}",
|
||||||
f"{origin_remote}?path=/{BRIDGE_SUBPATH}#{branch}"),
|
f"{origin_remote}?path=/{BRIDGE_SUBPATH}#{branch}"),
|
||||||
("[3] Local workspace",
|
(f"[3] Local {branch}",
|
||||||
f"file:{(repo_root / BRIDGE_SUBPATH).as_posix()}"),
|
f"file:{(repo_root / BRIDGE_SUBPATH).as_posix()}"),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue