diff --git a/pyproject.toml b/pyproject.toml index 3d2f0a2..5df09b4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -28,8 +28,6 @@ dependencies = [ "morph-tool", "jsonschema", "luigi", - "pydot", - "matplotlib", "brainbuilder>=0.20.1", ] classifiers = [ @@ -45,7 +43,12 @@ classifiers = [ dynamic = ["version"] [project.optional-dependencies] +viz = [ + "pydot", + "matplotlib", +] docs = [ + "blue-cwl[viz]", "sphinx-bluebrain-theme", ] diff --git a/tox.ini b/tox.ini index 847500c..c5d64d6 100644 --- a/tox.ini +++ b/tox.ini @@ -20,6 +20,7 @@ envlist = [testenv] deps = {[base]testdeps} +extras = viz commands_pre = /bin/mkdir -p {[base]basetemp} commands = python -m pytest --basetemp=tmptestdir/{envname} tests/unit {posargs} allowlist_externals = @@ -115,6 +116,7 @@ deps = {[base]testdeps} coverage[toml] pytest-cov +extras = viz commands = python -m pytest --cov={[base]name} --basetemp=tmptestdir/{envname} tests/unit {posargs} coverage xml