Installation ============ .. _dependencies: Required dependencies --------------------- - Python 3.9 or later - MongoDB 4.0 or later - `xarray `_ - `dask `_ - `PyMongo `_ Optional dependencies --------------------- - `Motor `_ for asyncio support - `Pint `_ - `Sparse `_ *(support not yet implemented)* .. _mindeps_policy: Minimum dependency versions --------------------------- xarray_mongodb adopts a rolling policy regarding the minimum supported versions of its dependencies: - **Python:** 42 months (`NEP-29 `_) - **numpy:** 24 months (`NEP-29 `_) - **all other libraries:** 12 months You can see the actual minimum supported and tested versions here: ``_ .. _build_sphinx: Sphinx documentation -------------------- To build the Sphinx documentation: 1. Source conda environment 2. Move to the root directory of this project 3. Execute:: conda env create -n xarray_mongodb_docs --file ci/requirements-docs.yml conda activate xarray_mongodb_docs sphinx-build -n -j auto -b html -d build/doctrees doc build/html .. _run_tests: Testing ------- To run the test suite: 1. Start MongoDB on localhost (no password) 2. Source conda environment 3. Move to the root directory of this project 4. Execute:: conda env create -n xarray_mongodb --file ci/requirements-latest.yml conda activate xarray_mongodb py.test