Skip to content

Commit f5e88ab

Browse files
committed
Deps: Move xarray, nc, and h5 deps into all
Xarray leverages netcdf and h5 libraries behind the scenes. Historically it is better for MHKiT to manage the versions for these libraries vs latest because of subtle breaking changes. This moves the deps into all because all data functions in mhkit support xarray output and thus require all the h5, nc libraries.
1 parent 5ef2a58 commit f5e88ab

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

pyproject.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,17 @@ classifiers = [
2121
]
2222
requires-python = ">=3.10"
2323
dependencies = [
24+
# MHKiT-Python uses xarray everywhere, which leverages netcdf and h5 behind the
25+
# scenes. xarray, netcdf4, and h5 dependencies should all be synced to avoid
26+
# compatibility issues with individual modules.
27+
"xarray>=2024.6.0",
28+
"netCDF4>=1.7.1.post1",
29+
"h5py>=3.11.0",
30+
"h5pyd>=0.18.0",
2431
"numpy>=2.0.0",
2532
"numexpr>=2.10.0",
2633
"pandas>=2.2.2,<3.0",
2734
"scipy>=1.14.0",
28-
"xarray>=2024.6.0",
2935
"matplotlib>=3.9.1",
3036
"pecos>=0.3.0",
3137
"requests",
@@ -36,28 +42,22 @@ dependencies = [
3642
wave = [
3743
"scikit-learn>=1.5.1",
3844
"statsmodels>=0.14.2",
39-
"netCDF4>=1.7.1.post1",
4045
"pytz",
4146
"NREL-rex>=0.2.63",
4247
"beautifulsoup4",
4348
"bottleneck",
4449
"lxml",
45-
"h5py>=3.11.0",
46-
"h5pyd>=0.18.0",
4750
]
4851

4952
tidal = [
50-
"netCDF4>=1.7.1.post1",
5153
"bottleneck",
5254
]
5355

5456
river = [
55-
"netCDF4>=1.7.1.post1",
5657
"bottleneck",
5758
]
5859

5960
dolfyn = [
60-
"netCDF4>=1.7.1.post1",
6161
"cartopy",
6262
]
6363

0 commit comments

Comments
 (0)