You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ru...@apache.org on 2026/08/08 05:55:27 UTC

(superset) branch master updated: chore(deps): bump numpy from 1.26.4 to 2.4.6 (#42778)

This is an automated email from the ASF dual-hosted git repository.

rusackas pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 2a9c5acb019 chore(deps): bump numpy from 1.26.4 to 2.4.6 (#42778)
2a9c5acb019 is described below

commit 2a9c5acb0190ca6d20cf714c0475028610790081
Author: dependabot[bot] <49...@users.noreply.github.com>
AuthorDate: Fri Aug 7 22:55:20 2026 -0700

    chore(deps): bump numpy from 1.26.4 to 2.4.6 (#42778)
    
    Signed-off-by: dependabot[bot] <su...@github.com>
    Signed-off-by: github-actions[bot] <41...@users.noreply.github.com>
    Co-authored-by: dependabot[bot] <49...@users.noreply.github.com>
    Co-authored-by: github-actions[bot] <41...@users.noreply.github.com>
    Co-authored-by: Joe Li <jo...@preset.io>
    Co-authored-by: rusackas <ev...@rusackas.com>
    Co-authored-by: Claude Opus 4.8 <no...@anthropic.com>
---
 pyproject.toml                                          | 7 ++++++-
 requirements/base.txt                                   | 2 +-
 requirements/development.txt                            | 2 +-
 superset/utils/pandas_postprocessing/utils.py           | 2 +-
 tests/unit_tests/pandas_postprocessing/test_pivot.py    | 4 ++--
 tests/unit_tests/pandas_postprocessing/test_resample.py | 2 +-
 6 files changed, 12 insertions(+), 7 deletions(-)

diff --git a/pyproject.toml b/pyproject.toml
index c21c69141a3..2e1468db60e 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -88,7 +88,7 @@ dependencies = [
     "marshmallow-union>=0.1.15.post1",
     "msgpack>=1.2.0, <1.3",
     "nh3>=0.3.5, <0.4",
-    "numpy>1.23.5, <2.3",
+    "numpy>=1.23.5, <2.5",
     "packaging",
     # --------------------------
     # pandas and related (wanting pandas[performance] without numba as it's 100+MB and not needed)
@@ -535,6 +535,11 @@ authorized_licenses = [
 # Seems ok, might need legal review
 # https://github.com/urschrei/pypolyline/blob/master/LICENSE.md
 polyline = "2"
+# NumPy 2.x reports a combined SPDX license expression covering vendored
+# code (BSD-3-Clause AND 0BSD AND MIT AND Zlib AND CC0-1.0), all of which
+# are permissive OSI-approved licenses; the package itself remains
+# BSD-3-Clause. https://github.com/numpy/numpy/blob/main/LICENSE.txt
+numpy = "2"
 # --------------------------------------------------------------
 
 # TODO REMOVE THESE DEPS FROM CODEBASE
diff --git a/requirements/base.txt b/requirements/base.txt
index d3aec2f4393..f44ed45930a 100644
--- a/requirements/base.txt
+++ b/requirements/base.txt
@@ -251,7 +251,7 @@ nh3==0.3.6
     # via apache-superset (pyproject.toml)
 numexpr==2.10.2
     # via -r requirements/base.in
-numpy==1.26.4
+numpy==2.4.6
     # via
     #   apache-superset (pyproject.toml)
     #   bottleneck
diff --git a/requirements/development.txt b/requirements/development.txt
index d4d723ea4c0..ec05bdcdca8 100644
--- a/requirements/development.txt
+++ b/requirements/development.txt
@@ -581,7 +581,7 @@ nh3==0.3.6
     #   apache-superset
 nodeenv==1.8.0
     # via pre-commit
-numpy==1.26.4
+numpy==2.4.6
     # via
     #   -c requirements/base-constraint.txt
     #   apache-superset
diff --git a/superset/utils/pandas_postprocessing/utils.py b/superset/utils/pandas_postprocessing/utils.py
index 342fa104aaf..aa2667ed9d5 100644
--- a/superset/utils/pandas_postprocessing/utils.py
+++ b/superset/utils/pandas_postprocessing/utils.py
@@ -48,7 +48,7 @@ NUMPY_FUNCTIONS: dict[str, Callable[..., Any]] = {
     "min": np.min,
     "percentile": np.percentile,
     "prod": np.prod,
-    "product": np.product,
+    "product": np.prod,
     "std": np.std,
     "sum": np.sum,
     "var": np.var,
diff --git a/tests/unit_tests/pandas_postprocessing/test_pivot.py b/tests/unit_tests/pandas_postprocessing/test_pivot.py
index 616f1c44316..48743f62707 100644
--- a/tests/unit_tests/pandas_postprocessing/test_pivot.py
+++ b/tests/unit_tests/pandas_postprocessing/test_pivot.py
@@ -159,7 +159,7 @@ def test_pivot_eliminate_cartesian_product_columns():
             "dttm": to_datetime(["2019-01-01", "2019-01-01"]),
             "a": [0, 1],
             "b": [0, 1],
-            "metric": [9, np.NAN],
+            "metric": [9, np.nan],
         }
     )
 
@@ -180,7 +180,7 @@ def test_pivot_eliminate_cartesian_product_columns():
             "dttm": to_datetime(["2019-01-01", "2019-01-01"]),
             "a": [0, 1],
             "b": [0, 1],
-            "metric": [9, np.NAN],
+            "metric": [9, np.nan],
             "metric2": [10, 11],
         }
     )
diff --git a/tests/unit_tests/pandas_postprocessing/test_resample.py b/tests/unit_tests/pandas_postprocessing/test_resample.py
index 207863ab879..7c742de8f36 100644
--- a/tests/unit_tests/pandas_postprocessing/test_resample.py
+++ b/tests/unit_tests/pandas_postprocessing/test_resample.py
@@ -253,7 +253,7 @@ def test_resample_linear():
                 ]
             ),
             data={
-                "label": ["a", np.NaN, np.NaN, np.NaN, "e", np.NaN, np.NaN, "j"],
+                "label": ["a", np.nan, np.nan, np.nan, "e", np.nan, np.nan, "j"],
                 "y": [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0],
             },
         )