Skip to content

Commit

Permalink
pin nightly zarr to v2 (#9050)
Browse files Browse the repository at this point in the history
* explicitly install new zarr dependencies

* fall back to `mamba` / `conda` if `micromamba` is not installed

* install from `zarr`'s `main` instead
  • Loading branch information
keewis committed May 30, 2024
1 parent 9e8ea74 commit 0939003
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions ci/install-upstream-wheels.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
#!/usr/bin/env bash

if which micromamba >/dev/null; then
conda=micromamba
elif which mamba >/dev/null; then
conda=mamba
else
conda=conda
fi

# temporarily (?) remove numbagg and numba
micromamba remove -y numba numbagg sparse
$conda remove -y numba numbagg sparse
# temporarily remove numexpr
micromamba remove -y numexpr
$conda remove -y numexpr
# temporarily remove backends
micromamba remove -y cf_units hdf5 h5py netcdf4 pydap
$conda remove -y cf_units hdf5 h5py netcdf4 pydap
# forcibly remove packages to avoid artifacts
micromamba remove -y --force \
$conda remove -y --force \
numpy \
scipy \
pandas \
Expand All @@ -19,6 +27,7 @@ micromamba remove -y --force \
bottleneck \
flox
# pint

# to limit the runtime of Upstream CI
python -m pip install \
-i https://pypi.anaconda.org/scientific-python-nightly-wheels/simple \
Expand All @@ -45,7 +54,7 @@ python -m pip install \
git+https://github.com/dask/dask \
git+https://github.com/dask/dask-expr \
git+https://github.com/dask/distributed \
git+https://github.com/zarr-developers/zarr \
git+https://github.com/zarr-developers/zarr.git@main \
git+https://github.com/Unidata/cftime \
git+https://github.com/pypa/packaging \
git+https://github.com/hgrecco/pint \
Expand Down

0 comments on commit 0939003

Please sign in to comment.