Skip to content

Commit

Permalink
Pin dask higher, skip dask v2024.11.0 (#1991)
Browse files Browse the repository at this point in the history
### What kind of change does this PR introduce?

* Sets the lowest `dask` pin to the version that dropped Python 3.9
support.
* Temporarily pins `dask` below version `2024.11.0` as this version has
changed chunking behaviour.

### Does this PR introduce a breaking change?

Not really. It should not affect relatively recent builds/installations.

### Other information:

https://numpy.org/neps/nep-0029-deprecation_policy.html
https://docs.dask.org/en/stable/changelog.html#v2024-11-1
  • Loading branch information
Zeitsperre authored Nov 11, 2024
2 parents 4198e8b + e9c69dd commit 6328114
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@
Changelog
=========

v0.54.0 (unreleased)
--------------------
Contributors to this version: Trevor James Smith (:user:`Zeitsperre`),

Breaking changes
----------------
* The minimum required version of `dask` has been increased to `2024.8.1`. `dask` versions at or above `2024.11` are not yet supported. (:issue:`1992`, :pull:`1991`).

v0.53.2 (2024-10-31)
--------------------
Contributors to this version: Éric Dupuis (:user:`coxipi`), Pascal Bourgault (:user:`aulemahal`), Trevor James Smith (:user:`Zeitsperre`).
Expand Down
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ dependencies:
- cf_xarray >=0.9.3
- cftime >=1.4.1
- click >=8.1
- dask >=2.6.0
- dask >=2024.8.1,<2024.11.0
- filelock >=3.14.0
- jsonpickle >=3.1.0
- numba >=0.54.1
Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ dependencies = [
"cf-xarray >=0.9.3", # cf-xarray is differently named on conda-forge
"cftime >=1.4.1",
"click >=8.1",
"dask[array] >=2.6",
"dask[array] >=2024.8.1,<2024.11.0",
"filelock >=3.14.0",
"jsonpickle >=3.1.0",
"numba >=0.54.1",
Expand Down Expand Up @@ -128,7 +128,6 @@ xclim = "xclim.cli:cli"

[tool.black]
target-version = [
"py39",
"py310",
"py311",
"py312"
Expand Down

0 comments on commit 6328114

Please sign in to comment.