mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-08 03:01:47 +00:00
fix: add termux-all install profile and safe fallbacks
This commit is contained in:
parent
da18fd084a
commit
dc5ef1ac8e
3 changed files with 60 additions and 11 deletions
23
tests/test_termux_all_extra_compat.py
Normal file
23
tests/test_termux_all_extra_compat.py
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
"""Regression coverage for the Termux broad install profile."""
|
||||
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
REPO_ROOT = Path(__file__).resolve().parent.parent
|
||||
PYPROJECT = REPO_ROOT / "pyproject.toml"
|
||||
INSTALL_SH = REPO_ROOT / "scripts" / "install.sh"
|
||||
|
||||
|
||||
def test_pyproject_defines_termux_all_without_known_blockers() -> None:
|
||||
text = PYPROJECT.read_text()
|
||||
assert "termux-all = [" in text
|
||||
assert '"hermes-agent[termux]"' in text
|
||||
assert '"hermes-agent[matrix]"' not in text.split("termux-all = [", 1)[1].split("]", 1)[0]
|
||||
assert '"hermes-agent[voice]"' not in text.split("termux-all = [", 1)[1].split("]", 1)[0]
|
||||
|
||||
|
||||
def test_install_script_prefers_termux_all_then_fallbacks() -> None:
|
||||
text = INSTALL_SH.read_text()
|
||||
assert "pip install -e '.[termux-all]' -c constraints-termux.txt" in text
|
||||
assert "Termux broad profile (.[termux-all]) failed, trying baseline Termux profile..." in text
|
||||
assert "Termux baseline profile (.[termux]) failed, trying base install..." in text
|
||||
Loading…
Add table
Add a link
Reference in a new issue