Skip to content

Commit e6b98f3

Browse files
committed
netCDF4 is no longer a required dependency
1 parent ecb933c commit e6b98f3

15 files changed

+18
-21
lines changed

.github/workflows/benchmarks.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ jobs:
6060
numpy
6161
pandas
6262
xarray
63-
netCDF4
6463
packaging
6564
geopandas
6665
pyarrow-core

.github/workflows/cache_data.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ jobs:
5555
numpy
5656
pandas
5757
xarray
58-
netCDF4
5958
packaging
6059
python-build
6160

.github/workflows/ci_docs.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ jobs:
9696
numpy
9797
pandas
9898
xarray
99-
netCDF4
10099
packaging
101100
contextily
102101
geopandas

.github/workflows/ci_doctests.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ jobs:
5454
numpy
5555
pandas
5656
xarray
57-
netCDF4
5857
packaging
5958
contextily
6059
geopandas

.github/workflows/ci_tests.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,13 @@ jobs:
7575
numpy-version: '1.26'
7676
pandas-version: '=2.1'
7777
xarray-version: '=2023.07'
78-
optional-packages: ' contextily geopandas ipython pyarrow-core rioxarray sphinx-gallery'
78+
optional-packages: ' contextily geopandas ipython pyarrow-core rioxarray netCDF4 sphinx-gallery'
7979
# Python 3.13 + core packages (latest versions) + optional packages
8080
- python-version: '3.13'
8181
numpy-version: '2.2'
8282
pandas-version: ''
8383
xarray-version: ''
84-
optional-packages: ' contextily geopandas ipython pyarrow-core rioxarray sphinx-gallery'
84+
optional-packages: ' contextily geopandas ipython pyarrow-core rioxarray netCDF4 sphinx-gallery'
8585
# Python 3.12 + core packages (Linux only)
8686
- os: 'ubuntu-latest'
8787
python-version: '3.12'
@@ -129,7 +129,6 @@ jobs:
129129
numpy=${{ matrix.numpy-version }}
130130
pandas${{ matrix.pandas-version }}
131131
xarray${{ matrix.xarray-version }}
132-
netCDF4
133132
packaging
134133
make
135134
pip

.github/workflows/ci_tests_dev.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,8 @@ jobs:
150150
run: |
151151
python -m pip install --pre --prefer-binary \
152152
--extra-index https://pypi.anaconda.org/scientific-python-nightly-wheels/simple \
153-
numpy pandas xarray netCDF4 packaging \
154-
build contextily dvc geopandas ipython pyarrow rioxarray \
153+
numpy pandas xarray packaging \
154+
build contextily dvc geopandas ipython pyarrow rioxarray netCDF4 \
155155
pytest pytest-cov pytest-doctestplus pytest-mpl pytest-rerunfailures \
156156
sphinx-gallery
157157

.github/workflows/ci_tests_legacy.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ jobs:
6464
numpy=1.26
6565
pandas
6666
xarray
67-
netCDF4
6867
packaging
6968
contextily=1.5
7069
geopandas=1.0

.github/workflows/type_checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
# 3. type checker and stub packages
5454
# 4. other packages that are used somewhere in PyGMT
5555
python -m pip install \
56-
numpy pandas xarray netcdf4 packaging \
56+
numpy pandas xarray packaging \
5757
contextily geopandas ipython pyarrow rioxarray \
5858
mypy pandas-stubs pyarrow-stubs \
5959
matplotlib pytest

ci/requirements/docs.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ dependencies:
1010
- numpy
1111
- pandas
1212
- xarray
13-
- netCDF4
1413
- packaging
1514
# Optional dependencies
1615
- contextily

doc/install.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ PyGMT requires the following packages to be installed:
9595
- [NumPy](https://numpy.org)
9696
- [pandas](https://pandas.pydata.org)
9797
- [Xarray](https://xarray.dev/)
98-
- [netCDF4](https://unidata.github.io/netcdf4-python)
9998
- [packaging](https://packaging.pypa.io)
10099

101100
:::{note}
@@ -128,14 +127,14 @@ installed (we'll call it `pygmt` but feel free to change it to whatever you want
128127
::: {tab-item} mamba
129128
:sync: mamba
130129
```
131-
mamba create --name pygmt python=3.13 numpy pandas xarray netcdf4 packaging gmt
130+
mamba create --name pygmt python=3.12 numpy pandas xarray packaging gmt
132131
```
133132
:::
134133

135134
::: {tab-item} conda
136135
:sync: conda
137136
```
138-
conda create --name pygmt python=3.13 numpy pandas xarray netcdf4 packaging gmt
137+
conda create --name pygmt python=3.12 numpy pandas xarray packaging gmt
139138
```
140139
:::
141140
::::

0 commit comments

Comments
 (0)