From 4add7d0c12883d73bbe0bc149ac0e24726cc3150 Mon Sep 17 00:00:00 2001 From: Alex Fournier Date: Wed, 22 Jul 2026 14:35:15 -0700 Subject: [PATCH] test(packaging): remove Relay dependency change detector Signed-off-by: Alex Fournier --- tests/test_project_metadata.py | 45 ---------------------------------- 1 file changed, 45 deletions(-) diff --git a/tests/test_project_metadata.py b/tests/test_project_metadata.py index 6ba5e4809ac..53888274e15 100644 --- a/tests/test_project_metadata.py +++ b/tests/test_project_metadata.py @@ -3,9 +3,6 @@ from pathlib import Path import tomllib -from packaging.requirements import Requirement - - def _load_optional_dependencies(): pyproject_path = Path(__file__).resolve().parents[1] / "pyproject.toml" with pyproject_path.open("rb") as handle: @@ -13,12 +10,6 @@ def _load_optional_dependencies(): return project["optional-dependencies"] -def _load_project(): - pyproject_path = Path(__file__).resolve().parents[1] / "pyproject.toml" - with pyproject_path.open("rb") as handle: - return tomllib.load(handle)["project"] - - def _load_package_data(): pyproject_path = Path(__file__).resolve().parents[1] / "pyproject.toml" with pyproject_path.open("rb") as handle: @@ -230,42 +221,6 @@ def test_feishu_extra_includes_qrcode_for_qr_login(): assert any(dep.startswith("qrcode") for dep in feishu_extra) -def test_nemo_relay_is_a_bounded_core_dependency(): - metadata = _load_project() - - relay_dependencies = [ - dependency - for dependency in metadata["dependencies"] - if dependency.startswith("nemo-relay") - ] - assert len(relay_dependencies) == 1 - requirement = Requirement(relay_dependencies[0]) - assert str(requirement.specifier) == "<0.7,>=0.6.0rc3" - assert requirement.marker is not None - assert requirement.marker.evaluate( - {"sys_platform": "darwin", "platform_machine": "arm64"} - ) - assert requirement.marker.evaluate( - {"sys_platform": "linux", "platform_machine": "x86_64"} - ) - assert requirement.marker.evaluate( - {"sys_platform": "linux", "platform_machine": "aarch64"} - ) - assert requirement.marker.evaluate( - {"sys_platform": "win32", "platform_machine": "AMD64"} - ) - assert requirement.marker.evaluate( - {"sys_platform": "win32", "platform_machine": "ARM64"} - ) - assert not requirement.marker.evaluate( - {"sys_platform": "android", "platform_machine": "aarch64"} - ) - assert not requirement.marker.evaluate( - {"sys_platform": "darwin", "platform_machine": "x86_64"} - ) - assert metadata["optional-dependencies"]["nemo-relay"] == [] - - def test_dashboard_plugin_manifests_and_assets_are_packaged(): """Bundled dashboard plugins need their manifests and built assets in wheel installs so /api/dashboard/plugins can discover them outside a