Skip to content

Commit a1299f0

Browse files
Test against minimum dependencies, remove old deps (#2301)
Co-authored-by: Vecko <36369090+VeckoTheGecko@users.noreply.github.com>
1 parent 3261295 commit a1299f0

5 files changed

Lines changed: 50 additions & 34 deletions

File tree

.github/ci/recipe.yaml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,23 +29,22 @@ requirements:
2929
- wheel
3030
run:
3131
- python >=3.11
32-
- cftime
33-
- dask
32+
- cftime >=1.6.3
33+
- dask >=2024.5.1
3434
- matplotlib-base >=2.0.2
35-
- netcdf4 >=1.1.9
36-
- numpy >=1.11
35+
- netcdf4 >=1.7.2
36+
- numpy >=2.1.0
3737
- platformdirs
3838
- pytest
39-
- scipy >=0.16.0
4039
- trajan
41-
- tqdm
42-
- xarray >=0.10.8
43-
- cf_xarray
44-
- xgcm
45-
- zarr >=2.11.0,!=2.18.0,<3
40+
- tqdm >=4.50.0
41+
- xarray >=2024.5.0
42+
- cf_xarray >=0.8.6
43+
- xgcm >=0.9.0
44+
- zarr >=2.15.0,!=2.18.0,<3
4645
- uxarray>=2025.3.0
4746
- pyogrio # needed for geopandas (uxarray -> geoviews -> geopandas -> pyogrio, but for some reason conda doesn't pick it up automatically)
48-
- pooch
47+
- pooch >=1.8.0
4948

5049
tests:
5150
- python:

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ jobs:
3333
include:
3434
- os: ubuntu
3535
pixi-environment: "test-py311"
36+
- os: ubuntu
37+
pixi-environment: "test-minimum"
3638
steps:
3739
- uses: actions/checkout@v4
3840
- name: Restore cached pixi lockfile

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,8 @@ src/parcels/_version_setup.py
2929
.pixi
3030
*.egg-info
3131

32-
# Ignore pixi.lock file for now as Vecko is the only one using pixi for development. This should be checked into VCS if it becomes a more common tool.
32+
# Ignore pixi.lock file for this project. The con of 22k lines of noise it adds to diffs is not worth
33+
# the minor benefit of perfectly reproducible environments for all developers (and all the tooling that would
34+
# be required to support that - see https://github.com/pydata/xarray/issues/10732#issuecomment-3327780806
35+
# for more details)
3336
pixi.lock

pixi.toml

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ setuptools_scm = "*"
1818

1919
[environments]
2020
test-latest = { features = ["test"], solve-group = "test" }
21+
test-minimum = { features = ["test", "minimum"], solve-group = "test" }
2122
test-py311 = { features = ["test", "py311"] }
2223
test-py312 = { features = ["test", "py312"] }
2324
test-notebooks = { features = ["test", "notebooks"], solve-group = "test" }
@@ -28,19 +29,31 @@ pre-commit = { features = ["pre-commit"], no-default-feature = true }
2829
[dependencies] # keep section in sync with pyproject.toml dependencies
2930
python = ">=3.11,<3.13"
3031
parcels = { path = "." }
31-
netcdf4 = ">=1.1.9"
32-
numpy = ">=1.9.1"
33-
tqdm = "*"
34-
xarray = ">=0.10.8"
32+
netcdf4 = ">=1.7.2"
33+
numpy = ">=2.1.0"
34+
tqdm = ">=4.50.0"
35+
xarray = ">=2024.5.0"
3536
uxarray = ">=2025.3.0"
36-
dask = ">=2.0"
37-
scikit-learn = "*"
38-
zarr = ">=2.11.0,!=2.18.0,<3"
37+
dask = ">=2024.5.1"
38+
zarr = ">=2.15.0,!=2.18.0,<3"
3939
xgcm = ">=0.9.0"
40-
cf_xarray = "*"
41-
cftime = ">=1.3.1"
42-
scipy = ">=0.16.0" #? Not sure if we rely on scipy internally anymore...
43-
pooch = "*"
40+
cf_xarray = ">=0.8.6"
41+
cftime = ">=1.6.3"
42+
pooch = ">=1.8.0"
43+
44+
[feature.minimum.dependencies]
45+
python = "==3.11"
46+
netcdf4 = "==1.7.2"
47+
numpy = "==2.1.0"
48+
tqdm = "==4.50.0"
49+
xarray = "==2024.5.0"
50+
uxarray = "==2025.3.0"
51+
dask = "==2024.5.1"
52+
zarr = "==2.15.0"
53+
xgcm = "==0.9.0"
54+
cf_xarray = "==0.8.6"
55+
cftime = "==1.6.3"
56+
pooch = "==1.8.0"
4457

4558
[feature.py311.dependencies]
4659
python = "3.11.*"

pyproject.toml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,18 @@ classifiers = [
2020
"Intended Audience :: Science/Research",
2121
]
2222
dependencies = [
23-
"cftime",
24-
"numpy >=1.11",
25-
"dask",
26-
"netCDF4 >=1.1.9",
27-
"zarr >=2.11.0,!=2.18.0,<3",
28-
"tqdm",
23+
"cftime >=1.6.3",
24+
"numpy >=2.1.0",
25+
"dask >=2024.5.1",
26+
"netCDF4 >=1.7.2",
27+
"zarr >=2.15.0,!=2.18.0,<3",
28+
"tqdm >=4.50.0",
2929
"pytest",
30-
"scipy >=0.16.0",
31-
"xarray >=0.10.8",
32-
"uxarray",
33-
"pooch",
30+
"xarray >=2024.5.0",
31+
"uxarray >=2025.3.0",
32+
"pooch >=1.8.0",
3433
"xgcm >=0.9.0",
35-
"cf_xarray",
34+
"cf_xarray >=0.8.6",
3635
]
3736

3837
[project.urls]

0 commit comments

Comments
 (0)