diff --git a/README.rst b/README.rst index a9e9259..f891ffd 100644 --- a/README.rst +++ b/README.rst @@ -32,6 +32,12 @@ The recommended way to install ``stl-reader`` is via PyPI: pip install stl-reader +Optionally with PyVista: + +.. code:: sh + + pip install stl-reader[pyvista] + You can also clone the repository and install it from source: .. code:: sh diff --git a/pyproject.toml b/pyproject.toml index 23684ad..f3a2b60 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -18,7 +18,6 @@ classifiers = [ "Programming Language :: Python :: 3.12" ] dependencies = [ - "pyvista", "numpy" ] description = "Read in STL files" @@ -27,6 +26,9 @@ readme = "README.rst" requires-python = ">=3.8" version = "0.3.dev0" +[project.optional-dependencies] +pyvista = ["pyvista"] + [tool.cibuildwheel] archs = ["auto64"] # 64-bit only skip = "cp36-* cp37-* pp* *musllinux*" # disable PyPy and musl-based wheels