From 8bbfbc28c041c72e18a983cf07ba55a4de0336f5 Mon Sep 17 00:00:00 2001 From: Alex Kaszynski Date: Tue, 16 Jul 2024 12:58:16 -0600 Subject: [PATCH 1/2] remove pyvista dependency --- pyproject.toml | 1 - 1 file changed, 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 23684ad..48eec90 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" From 1f1a9b84459d738cce35daab79cef17c6dcb3e18 Mon Sep 17 00:00:00 2001 From: Alex Kaszynski Date: Tue, 16 Jul 2024 13:00:56 -0600 Subject: [PATCH 2/2] add in pyvista as an optional --- README.rst | 6 ++++++ pyproject.toml | 3 +++ 2 files changed, 9 insertions(+) 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 48eec90..f3a2b60 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,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