From d19eed8ff60be9c2770c10af130b88c5a2a49a84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicholas=20Kr=C3=A4mer?= Date: Mon, 20 Feb 2023 14:30:30 +0100 Subject: [PATCH] Optional dependency in tox --- setup.cfg | 1 - tox.ini | 8 ++++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index ba7f77e..c7e6c0a 100644 --- a/setup.cfg +++ b/setup.cfg @@ -26,6 +26,5 @@ cpu = jax[cpu] ci = tox - %(cpu)s docs = jupyter diff --git a/tox.ini b/tox.ini index 8884815..3af7fc1 100644 --- a/tox.ini +++ b/tox.ini @@ -11,6 +11,8 @@ isolated_build = True deps = pytest pytest-cases +extras = + cpu commands = pytest -v -x -Werror {posargs} @@ -22,6 +24,8 @@ deps = isort pylint mypy +extras = + cpu commands = black --check --diff . nbqa black --check --diff . @@ -35,6 +39,8 @@ commands = [testenv:docs] description = Build the HTML docs +extras = + cpu deps = -r {toxinidir}/docs/requirements-sphinx-build.txt allowlist_externals = make @@ -46,6 +52,8 @@ commands = [testenv:byexample] description = Run the snippets in the Readme +extras = + cpu deps = byexample commands =