From ab90b80972895835142f42872008c84503741bdf Mon Sep 17 00:00:00 2001 From: Martha Cryan Date: Tue, 18 Feb 2025 14:30:08 -0600 Subject: [PATCH 1/3] Add back in express extra dependencies and required dependencies --- pyproject.toml | 9 +++++++-- requires-express.txt | 8 -------- requires-install.txt | 10 ---------- 3 files changed, 7 insertions(+), 20 deletions(-) delete mode 100644 requires-express.txt delete mode 100644 requires-install.txt diff --git a/pyproject.toml b/pyproject.toml index 699e20ceb1..78a3ec5779 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -38,9 +38,14 @@ classifiers = [ requires-python = ">=3.8" license = {file="LICENSE.txt"} version = "6.0.0" -dynamic = ["dependencies"] +dependencies = [ + "narwhals>=1.13.3", + "packaging" +] + +[project.optional-dependencies] +express = ["numpy"] -# TODO: check that this works [tool.setuptools.packages.find] where = ["."] include = ["plotly*", "_plotly*"] diff --git a/requires-express.txt b/requires-express.txt deleted file mode 100644 index f561197347..0000000000 --- a/requires-express.txt +++ /dev/null @@ -1,8 +0,0 @@ -### Required dependencies for Plotly Express ### -### ### -### To install, run: ### -### $ pip install -r requires-express.txt ### -### ### -################################################### - -numpy diff --git a/requires-install.txt b/requires-install.txt deleted file mode 100644 index 2923ec9d8a..0000000000 --- a/requires-install.txt +++ /dev/null @@ -1,10 +0,0 @@ -### Dependencies for Core Plotly Functionality ### -### ### -### To install, run: ### -### $ pip install -r requires-install.txt ### -### ### -################################################### - -## dataframe agnostic layer ## -narwhals>=1.15.1 -packaging From 75b51067811dc1a67eed72910018b4d5d9f1a2e8 Mon Sep 17 00:00:00 2001 From: Martha Cryan Date: Tue, 18 Feb 2025 15:12:49 -0600 Subject: [PATCH 2/3] Remove deleted files from MANIFEST.in --- MANIFEST.in | 2 -- 1 file changed, 2 deletions(-) diff --git a/MANIFEST.in b/MANIFEST.in index d9c32908b0..d079cf5bf8 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,5 +1,3 @@ include LICENSE.txt include README.md -include requires-install.txt -include requires-express.txt include plotly/package_data/widgetbundle.js From 45a8fca81b166c744b059fc235866b0c8b4f459f Mon Sep 17 00:00:00 2001 From: Martha Cryan Date: Tue, 18 Feb 2025 16:07:22 -0600 Subject: [PATCH 3/3] Update pyproject.toml Co-authored-by: Emily KL <4672118+emilykl@users.noreply.github.com> --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 78a3ec5779..e4afcdb57d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -39,7 +39,7 @@ requires-python = ">=3.8" license = {file="LICENSE.txt"} version = "6.0.0" dependencies = [ - "narwhals>=1.13.3", + "narwhals>=1.15.1", "packaging" ]