diff --git a/.ci/display_test.py b/.ci/display_test.py deleted file mode 100644 index 9144c8caa00..00000000000 --- a/.ci/display_test.py +++ /dev/null @@ -1,7 +0,0 @@ -"""Quickly check if VTK off screen plotting works.""" -import pyvista -from pyvista.plotting import system_supports_plotting - -print("system_supports_plotting", system_supports_plotting()) -pyvista.OFF_SCREEN = True -pyvista.plot(pyvista.Sphere()) diff --git a/.ci/requirements_test_xvfb.txt b/.ci/requirements_test_xvfb.txt deleted file mode 100644 index adf211d1991..00000000000 --- a/.ci/requirements_test_xvfb.txt +++ /dev/null @@ -1,2 +0,0 @@ -matplotlib==3.2 -pyvista>=0.27.2 diff --git a/pyproject.toml b/pyproject.toml index a7f8a8dc0a8..11f833408e8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -25,7 +25,6 @@ classifiers = [ ] dependencies = [ "ansys-dpf-gate>=0.3.0", - "imageio < 2.28.1", "importlib-metadata >=4.0", "numpy", "packaging", @@ -35,7 +34,15 @@ dependencies = [ ] [project.optional-dependencies] -plotting = ["pyvista>=0.32.0", "matplotlib>=3.2"] +plotting = [ + # 2D chart plotting + "matplotlib>=3.2", + # 3D plotting + "pyvista>=0.32.0", + # Animations + "imageio < 2.28.1", + "imageio-ffmpeg", +] [tool.flit.module] name = "ansys.dpf.core" diff --git a/requirements/requirements_docs.txt b/requirements/requirements_docs.txt index d4ea95d5166..7c9cc9d70b5 100644 --- a/requirements/requirements_docs.txt +++ b/requirements/requirements_docs.txt @@ -1,6 +1,7 @@ ansys_sphinx_theme==0.9.5 enum-tools[sphinx]==0.9.0.post1 graphviz==0.20.1 +imageio==2.28.0 imageio-ffmpeg==0.4.7 nbsphinx==0.9.1 pypandoc==1.11 diff --git a/requirements/requirements_install.txt b/requirements/requirements_install.txt index 81daaf6d3a8..35c3c7f65e3 100644 --- a/requirements/requirements_install.txt +++ b/requirements/requirements_install.txt @@ -1,5 +1,4 @@ ansys-dpf-gate==0.3.1 -imageio==2.28.0 importlib-metadata==6.6.0 numpy==1.24.1 packaging==23.0 diff --git a/requirements/requirements_test.txt b/requirements/requirements_test.txt index 460eb96d2ed..635056c860e 100644 --- a/requirements/requirements_test.txt +++ b/requirements/requirements_test.txt @@ -1,5 +1,7 @@ ansys-platform-instancemanagement==1.0.2 coverage==7.1.0 +imageio==2.28.0 +imageio-ffmpeg==0.4.7 pytest==7.2.0 pytest-cov==4.0.0 pytest-order==1.1.0