Repository navigation
Relax Dask, Sphinx and stale dependency pins - #1364
Merged
jeromekelleher merged 2 commits intoOct 27, 2026
Merged
Conversation
Newer Dask releases no longer accept a lazy scalar as the stop value of da.arange, which Tajimas_D used to build the harmonic sums from the number of sampled chromosomes. Compute the sums with map_blocks instead. The results are unchanged, and Tajimas_D no longer computes the allele counts when it is called, which older Dask did implicitly.
Require Dask >= 2025.2.0, the minimum Xarray 2026.9.0 tests against, and drop the <= 2024.8.0 cap. Remove the Sphinx < 9 cap and the obsolete fsspec and ablog exclusions, and keep pandas < 3.0 for now. Refresh uv.lock, which moves to Dask 2026.8.0, NumPy 2.5, Numba 0.68 and Sphinx 9. Drop the Dask override from the docs workflows and the contributing guide, and install Dask 2025.2.0 in the minimum-version job so the new floor is tested. Replace the obsolete StoreLike nitpick entry with a mapping from the zarr.core.group.StoreLike reference that the newer sphinx-autodoc-typehints generates to zarr.storage.StoreLike, where Zarr documents it, and move the coverage pragma in TruncatedSVD to the branch for Dask releases without svd(full_matrices=...).
Billyzhang1229
marked this pull request as ready for review
October 26, 2026 23:37
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Dask has been capped at 2024.8.0 since #1248, because later releases made the main build very slow (#1247, tracked in #1267). The Sphinx < 9 and pandas < 3 caps were added in #1339, and the fsspec and ablog exclusions date from 2021 and 2022 (#625, #877).
This PR:
Tajimas_Dwith newer Dask, which no longer accepts a lazy scalar as the stop value ofda.arange. The harmonic sums are now computed withmap_blocks. The results are unchanged, andTajimas_Dno longer computes the allele counts when it is called.uv.lock, which moves to Dask 2026.8.0, NumPy 2.5, Numba 0.68 and Sphinx 9.zarr.core.group.StoreLikereference that sphinx-autodoc-typehints now generates tozarr.storage.StoreLike, where Zarr documents it, soStoreLikelinks to the Zarr docs. This replaces the nitpick entry that Sphinx 8 needed.TruncatedSVDto the branch for Dask releases withoutsvd(full_matrices=...), which the locked Dask no longer runs.With newer Dask,
pairwise_distancestill rebuilds and recompiles its Numba gufuncs on every call, which adds about 2 seconds per call for the correlation metric. Following PR #1365 will fix this and closes #1267, so it would be best to merge the two together.Part of #1267.
Testing: