Skip to content

Commit

Permalink
try using netcdf4 wheel
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeitsperre committed Feb 7, 2023
1 parent b1d1a8b commit e10edd7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ collect_ignore =
setup.py
addopts =
--color=yes
--cov
--verbose
--numprocesses=auto
--maxprocesses=6
Expand Down
5 changes: 1 addition & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,14 @@ deps =
commands =
# Install the latest NumPy and Numba before GDAL and netCDF4 are installed
numpy: python -m pip install --upgrade --force-reinstall --no-cache-dir numpy==1.23 numba
# Install NetCDF4-Python via source files
# Pin @v1.6.0 needed due to issue with PyPI wheels (see: https://github.com/Unidata/netcdf4-python/issues/1192)
python -m pip install --upgrade --force-reinstall --no-deps --no-cache-dir netcdf4==1.6.2 --no-binary netcdf4
# Deal with some GDAL silliness
python -m pip install --upgrade --force-reinstall --no-deps --no-cache-dir GDAL=={env:GDAL_VERSION} --global-option=build_ext --global-option="-I/usr/include/gdal"
# Pin @ <v65.6 due to incompatibility with numpy (see: https://github.com/numpy/numpy/issues/22623)
python -m pip install --upgrade --force-reinstall --no-deps --no-cache-dir setuptools<65.6
# Install the Raven and Ostrich binaries
python -m pip install --no-user --verbose --no-deps --no-cache-dir . --install-option="--with-binaries"
# Run tests
pytest --cov
pytest
# Coveralls requires access to a repo token set in .coveralls.yml in order to report stats
- coveralls --service=github
allowlist_externals =
Expand Down

0 comments on commit e10edd7

Please sign in to comment.