Skip to content

Commit c168e8d

Browse files
(chore): unbound dask (#1745)
* (chore): unbound dask * (fix): make range findable * (chore): release note * (fix): user not pr * (chore): fix `normalize_seq` import * (fix): use version check for import * (fix): add in other august dask * Update pyproject.toml Co-authored-by: Philipp A. <[email protected]> --------- Co-authored-by: Philipp A. <[email protected]>
1 parent 44ad42a commit c168e8d

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

docs/release-notes/1725.bugfix.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2+
Remove upper pin on `dask` and exclude versions broken with sparse indexing {user}`ilan-gold`

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ gpu = ["cupy"]
107107
cu12 = ["cupy-cuda12x"]
108108
cu11 = ["cupy-cuda11x"]
109109
# https://github.com/dask/dask/issues/11290
110-
dask = ["dask[array]>=2022.09.2,<2024.8.0"]
110+
dask = ["dask[array]>=2022.09.2,!=2024.8.*,!=2024.9.*"]
111111

112112
[tool.hatch.version]
113113
source = "vcs"

tests/conftest.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,16 @@
33
from functools import partial
44
from typing import TYPE_CHECKING
55

6+
import dask
67
import joblib
78
import pytest
8-
from dask.base import normalize_seq, normalize_token, tokenize
9+
from dask.base import normalize_token, tokenize
10+
from packaging.version import Version
11+
12+
if Version(dask.__version__) < Version("2024.8.0"):
13+
from dask.base import normalize_seq
14+
else:
15+
from dask.tokenize import normalize_seq
916
from scipy import sparse
1017

1118
import anndata as ad

0 commit comments

Comments
 (0)