test(packaging): remove Relay dependency change detector

Signed-off-by: Alex Fournier <afournier@nvidia.com>
This commit is contained in:
Alex Fournier 2026-07-22 14:35:15 -07:00
parent 0a43bc83b9
commit 4add7d0c12

View file

@ -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