Installation

Required dependencies

Optional dependencies

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: https://github.com/crusaderky/xarray_mongodb/blob/main/ci/requirements-min-all-deps.yml

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
    

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