Skip to content

Commit

Permalink
Bump min deps. (pydata#8586)
Browse files Browse the repository at this point in the history
* Bump min deps.

Closes pydata#8581

* Fix scipy

* Update bare-minimum

* Consolidate CI jobs

* Fix flox

* Flox 0.7

0.8 enforces 0numbagg > 0.6

* Update packaging

* update whats-new list
  • Loading branch information
dcherian authored Jan 5, 2024
1 parent bc2ac07 commit cd6862b
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 29 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/ci-additional.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -320,11 +320,6 @@ jobs:
run:
shell: bash -l {0}

strategy:
matrix:
environment-file: ["bare-minimum", "min-all-deps"]
fail-fast: false

steps:
- uses: actions/checkout@v4
with:
Expand All @@ -340,6 +335,10 @@ jobs:
conda
python-dateutil
- name: minimum versions policy
- name: All-deps minimum versions policy
run: |
python ci/min_deps_check.py ci/requirements/min-all-deps.yml
- name: Bare minimum versions policy
run: |
python ci/min_deps_check.py ci/requirements/${{ matrix.environment-file }}.yml
python ci/min_deps_check.py ci/requirements/bare-minimum.yml
6 changes: 3 additions & 3 deletions ci/requirements/bare-minimum.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ dependencies:
- pytest-env
- pytest-xdist
- pytest-timeout
- numpy=1.22
- packaging=21.3
- pandas=1.4
- numpy=1.23
- packaging=22.0
- pandas=1.5
35 changes: 19 additions & 16 deletions ci/requirements/min-all-deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,30 +10,35 @@ dependencies:
- python=3.9
- boto3=1.24
- bottleneck=1.3
- cartopy=0.20
- cartopy=0.21
- cftime=1.6
- coveralls
- dask-core=2022.7
- distributed=2022.7
- flox=0.5
- dask-core=2022.12
- distributed=2022.12
# Flox > 0.8 has a bug with numbagg versions
# It will require numbagg > 0.6
# so we should just skip that series eventually
# or keep flox pinned for longer than necessary
- flox=0.7
- h5netcdf=1.1
# h5py and hdf5 tend to cause conflicts
# for e.g. hdf5 1.12 conflicts with h5py=3.1
# prioritize bumping other packages instead
- h5py=3.7
- hdf5=1.12
- hypothesis
- iris=3.2
- iris=3.4
- lxml=4.9 # Optional dep of pydap
- matplotlib-base=3.5
- matplotlib-base=3.6
- nc-time-axis=1.4
# netcdf follows a 1.major.minor[.patch] convention
# (see https://github.com/Unidata/netcdf4-python/issues/1090)
- netcdf4=1.6.0
- numba=0.55
- numpy=1.22
- packaging=21.3
- pandas=1.4
- numba=0.56
- numbagg=0.2.1
- numpy=1.23
- packaging=22.0
- pandas=1.5
- pint=0.22
- pip
- pydap=3.3
Expand All @@ -43,11 +48,9 @@ dependencies:
- pytest-xdist
- pytest-timeout
- rasterio=1.3
- scipy=1.8
- seaborn=0.11
- scipy=1.10
- seaborn=0.12
- sparse=0.13
- toolz=0.12
- typing_extensions=4.3
- zarr=2.12
- pip:
- numbagg==0.2.1
- typing_extensions=4.4
- zarr=2.13
20 changes: 20 additions & 0 deletions doc/whats-new.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,26 @@ New Features
Breaking changes
~~~~~~~~~~~~~~~~

- The minimum versions of some dependencies were changed (:pull:`8586`):

===================== ========= ========
Package Old New
===================== ========= ========
cartopy 0.20 0.21
dask-core 2022.7 2022.12
distributed 2022.7 2022.12
flox 0.5 0.7
iris 3.2 3.4
matplotlib-base 3.5 3.6
numpy 1.22 1.23
numba 0.55 0.56
packaging 21.3 22.0
seaborn 0.11 0.12
scipy 1.8 1.10
typing_extensions 4.3 4.4
zarr 2.12 2.13
===================== ========= ========


Deprecations
~~~~~~~~~~~~
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ readme = "README.md"
requires-python = ">=3.9"

dependencies = [
"numpy>=1.22",
"packaging>=21.3",
"pandas>=1.4",
"numpy>=1.23",
"packaging>=22",
"pandas>=1.5",
]

[project.urls]
Expand Down

0 comments on commit cd6862b

Please sign in to comment.