From 8c1c31abcb592c7bc011d4e927409b68ea2b094b Mon Sep 17 00:00:00 2001 From: Maximilian Roos <5635139+max-sixty@users.noreply.github.com> Date: Wed, 2 Oct 2024 16:49:42 -0700 Subject: [PATCH] Add numba constraint (#9572) So we're compatible with https://github.com/astral-sh/uv/issues/7881. Notes inline --- pyproject.toml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 4f33eff8b15..79ebfb526e2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -27,8 +27,13 @@ dependencies = [ "pandas>=2.1", ] +# We don't encode minimum requirements here (though if we can write a script to +# generate the text from `min_deps_check.py`, that's welcome...). We do add +# `numba>=0.54` here because of https://github.com/astral-sh/uv/issues/7881; +# note that it's not a direct dependency of xarray. + [project.optional-dependencies] -accel = ["scipy", "bottleneck", "numbagg", "flox", "opt_einsum"] +accel = ["scipy", "bottleneck", "numbagg", "numba>=0.54", "flox", "opt_einsum"] complete = ["xarray[accel,etc,io,parallel,viz]"] dev = [ "hypothesis",