mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-11-21 10:12:49 +00:00
fix(benchmark): declare Pillow for MobileMem images
This commit is contained in:
parent
fd15a73244
commit
c249ce5691
2 changed files with 8 additions and 1 deletions
|
|
@ -5,7 +5,7 @@ description = "MobileMem-Omni native multimodal memory benchmark plugin for ReMe
|
|||
readme = "README.md"
|
||||
license = "Apache-2.0"
|
||||
requires-python = ">=3.11"
|
||||
dependencies = ["reme-ai[as]>=0.4.1.11"]
|
||||
dependencies = ["reme-ai[as]>=0.4.1.11", "pillow>=10.0.0"]
|
||||
|
||||
[project.entry-points."reme.plugins"]
|
||||
mobilemem = "reme_mobilemem"
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ from importlib.metadata import EntryPoint
|
|||
from io import BytesIO
|
||||
import json
|
||||
from pathlib import Path
|
||||
import tomllib
|
||||
from types import SimpleNamespace
|
||||
from unittest.mock import AsyncMock
|
||||
|
||||
|
|
@ -27,6 +28,12 @@ from reme.steps.file_io.read_image import ReadImageStep
|
|||
from benchmark.mobilemem import run as mobilemem
|
||||
|
||||
|
||||
def test_candidate_declares_required_image_dependency():
|
||||
manifest = Path(__file__).resolve().parents[2] / "plugins/mobilemem/pyproject.toml"
|
||||
project = tomllib.loads(manifest.read_text(encoding="utf-8"))["project"]
|
||||
assert "pillow>=10.0.0" in project["dependencies"]
|
||||
|
||||
|
||||
@pytest.fixture(name="mobile_scene")
|
||||
def fixture_mobile_scene(tmp_path):
|
||||
folder = tmp_path / "image/uid0/camera_photos"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue