From 49d03ad486f04c140df831cb84adaf319360e2c2 Mon Sep 17 00:00:00 2001 From: Stijn de Gooijer Date: Wed, 19 Jun 2024 11:37:43 +0200 Subject: [PATCH] build(python): Pin optional NumPy dependency to `< 2.0.0` for now (#17060) --- py-polars/pyproject.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/py-polars/pyproject.toml b/py-polars/pyproject.toml index 856eb2c0eb02d..864b116947f26 100644 --- a/py-polars/pyproject.toml +++ b/py-polars/pyproject.toml @@ -49,7 +49,9 @@ fsspec = ["fsspec"] gevent = ["gevent"] iceberg = ["pyiceberg >= 0.5.0"] matplotlib = ["matplotlib"] -numpy = ["numpy >= 1.16.0"] +# TODO: Remove upper bound when we support 2.0 +# https://github.com/pola-rs/polars/issues/16998 +numpy = ["numpy >= 1.16.0, < 2.0.0"] openpyxl = ["openpyxl >= 3.0.0"] pandas = ["pyarrow >= 7.0.0", "pandas"] plot = ["hvplot >= 0.9.1"]