Skip to content

Commit

Permalink
(chore): unbound dask (#1745)
Browse files Browse the repository at this point in the history
* (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. <flying-sheep@web.de>

---------

Co-authored-by: Philipp A. <flying-sheep@web.de>
  • Loading branch information
ilan-gold and flying-sheep authored Nov 11, 2024
1 parent 44ad42a commit c168e8d
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 c168e8d

Please sign in to comment.