Skip to content

Commit

Permalink
Backport PR #1745: (chore): unbound dask (#1751)
Browse files Browse the repository at this point in the history
Co-authored-by: Ilan Gold <ilanbassgold@gmail.com>
  • Loading branch information
meeseeksmachine and ilan-gold authored Nov 11, 2024
1 parent 1db37e8 commit f04e9f6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 2 additions & 0 deletions docs/release-notes/1725.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

Remove upper pin on `dask` and exclude versions broken with sparse indexing {user}`ilan-gold`
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ gpu = ["cupy"]
cu12 = ["cupy-cuda12x"]
cu11 = ["cupy-cuda11x"]
# https://github.com/dask/dask/issues/11290
dask = ["dask[array]>=2022.09.2,<2024.8.0"]
dask = ["dask[array]>=2022.09.2,!=2024.8.*,!=2024.9.*"]

[tool.hatch.version]
source = "vcs"
Expand Down
9 changes: 8 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,16 @@
from functools import partial
from typing import TYPE_CHECKING

import dask
import joblib
import pytest
from dask.base import normalize_seq, normalize_token, tokenize
from dask.base import normalize_token, tokenize
from packaging.version import Version

if Version(dask.__version__) < Version("2024.8.0"):
from dask.base import normalize_seq
else:
from dask.tokenize import normalize_seq
from scipy import sparse

import anndata as ad
Expand Down

0 comments on commit f04e9f6

Please sign in to comment.