diff --git a/pyproject.toml b/pyproject.toml index 5fa2915..26e6a24 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "xair-api" -version = "2.4.0" +version = "2.4.1" description = "Remote control Behringer X-Air | Midas MR mixers through OSC" authors = ["onyx-and-iris "] license = "MIT" @@ -29,6 +29,7 @@ build-backend = "poetry.core.masonry.api" [tool.poe.tasks] obs.script = "scripts:ex_obs" sends.script = "scripts:ex_sends" +headamp.script = "scripts:ex_headamp" xair.script = "scripts:test_xair" x32.script = "scripts:test_x32" all.script = "scripts:test_all" @@ -44,6 +45,14 @@ allowlist_externals = poetry commands = poetry install -v poetry run pytest tests/ + +[testenv:obs] +setenv = VIRTUALENV_DISCOVERY=pyenv +allowlist_externals = poetry +deps = obsws-python +commands = + poetry install -v --without dev + poetry run python examples/xair_obs/ """ [tool.ruff] diff --git a/scripts.py b/scripts.py index 5684c05..9c8d006 100644 --- a/scripts.py +++ b/scripts.py @@ -4,8 +4,7 @@ from pathlib import Path def ex_obs(): - path = Path.cwd() / "examples" / "xair_obs" / "." - subprocess.run([sys.executable, str(path)]) + subprocess.run(["tox", "r", "-e", "obs"]) def ex_sends(): @@ -13,6 +12,11 @@ def ex_sends(): subprocess.run([sys.executable, str(path)]) +def ex_headamp(): + path = Path.cwd() / "examples" / "headamp" / "." + subprocess.run([sys.executable, str(path)]) + + def test_xair(): path = Path.cwd() / "tests" / "xair" subprocess.run(["pytest", "-v", str(path)])