Installation¶
Optional dependencies¶
Note
Pint and Sparse require:
numpy =1.16 and the environment variable
NUMPY_EXPERIMENTAL_ARRAY_FUNCTION=1
, or numpy >=1.17xarray >=0.13
dask >= 2.0
Sphinx documentation¶
To build the Sphinx documentation:
Source conda environment
Move to the root directory of this project
Execute:
conda env create -n xarray_mongodb_docs --file ci/requirements-docs.yml conda activate xarray_mongodb_docs export PYTHONPATH=$PWD sphinx-build -n -j auto -b html -d build/doctrees doc build/html
Testing¶
To run the test suite:
Start MongoDB on localhost (no password)
Source conda environment
Move to the root directory of this project
Execute:
conda env create -n xarray_mongodb_py37 --file ci/requirements-py37.yml conda activate xarray_mongodb_py37 export PYTHONPATH=$PWD py.test
Replace py37 with any of the environments available in the ci
directory.