Skip to content

Commit

Permalink
Make viz optional (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
eleftherioszisis authored Jul 9, 2024
1 parent 3808fed commit 8572d0c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ dependencies = [
"morph-tool",
"jsonschema",
"luigi",
"pydot",
"matplotlib",
"brainbuilder>=0.20.1",
]
classifiers = [
Expand All @@ -45,7 +43,12 @@ classifiers = [
dynamic = ["version"]

[project.optional-dependencies]
viz = [
"pydot",
"matplotlib",
]
docs = [
"blue-cwl[viz]",
"sphinx-bluebrain-theme",
]

Expand Down
2 changes: 2 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8572d0c

Please sign in to comment.