From aca618a6194bc7f2ad196c59a91d426d59be2762 Mon Sep 17 00:00:00 2001 From: Sepand KASHANI Date: Sun, 22 Oct 2023 17:59:07 +0200 Subject: [PATCH] [SWE] Use seperate target for GUI dependencies. These are useful when installing Pyxu in user environments such as Jupyter notebooks. We refactor them out to not have to pull all dev dependencies to use them. --- pyproject.toml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 944c439b2..10a6e5469 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -43,12 +43,15 @@ dependencies = [ # Optional dependencies ======================================================= [project.optional-dependencies] -dev = [ - "graphviz >= 0.20, < 1", - "hatch >= 1.7, < 2", +interact = [ "ipython >= 8.14, < 9", "jupyterlab >= 4.0, < 5", "matplotlib >= 3.7, < 4", +] +dev = [ + "pyxu[interact]", + "graphviz >= 0.20, < 1", + "hatch >= 1.7, < 2", "nbsphinx >= 0.9.0, < 1", "pre-commit >= 3.3, < 4", "pydata_sphinx_theme == 0.13.3", @@ -64,7 +67,7 @@ dev = [ ] fft = [ "finufft >= 2.1, < 3", ] xray = [ "drjit == 0.4.3", ] -complete-cpu = [ "pyxu[fft,xray]", ] +complete-cpu = [ "pyxu[interact,fft,xray]", ] gpu11-base = [ "cupy-cuda11x", ] gpu12-base = [ "cupy-cuda12x", ] complete11 = [ "pyxu[complete-cpu,gpu11-base]", ]