From a822accf84a56bfde3922434e3692abf8c04c43c Mon Sep 17 00:00:00 2001 From: Nick Kinney Date: Sun, 31 May 2026 20:05:26 -0400 Subject: [PATCH] uv: set minimum numpy version to 2.0 (#810) Running the suite on numpy 1.x breaks tests, so the floor should be numpy 2.x. The existing dependency set already implies a 2.x-compatible window: numba caps numpy at <2.4 and pandas>=2.3.3 needs numpy>=1.26 on py3.12+, but nothing pinned a 2.x floor explicitly. Set 'numpy>=2.0'. Verified in an isolated env pinned to the floor (numpy==2.0.2, which also pulled pandas 3.0.3 / sparse 0.18 / numba 0.65) that uv solves the environment and the full suite passes: 716 passed, 1 skipped, 12 xfailed. Closes #810. --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index f87e7525..1d98a2c4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -34,7 +34,7 @@ dependencies = [ "scikit-learn>1.4.2", "numba>0.54", "sparse>=0.9", - "numpy", + "numpy>=2.0", "matplotlib", # Required for TriangleDisplay.heatmap() "dill", "patsy",