Installation ============ .. code-block:: bash $ pip install xarray-ms xarray-ms has a minimal set of dependencies. If cubed_, dask_ or zarr_ support is required for use with xarray, they must be installed separately. .. code-block:: bash pip install cubed dask[array] distributed zarr Development =========== Create a virtual environment and install with the dev, doc and testing dependencies: .. code-block:: bash $ virtualenv -p python3.12 /tmp/xms $ source xms/bin/activate (xms) $ pip install -e .[dev,doc,testing] The pre-commit hooks can be manually executed as follows: .. code-block:: bash (xms) $ pre-commit run -a Test Suite ---------- After creating the virtual environment above, run the following command within the xarray-ms source code directory to execute the test suite: .. code-block:: bash (xms) $ py.test -s -vvv tests/ Documentation ------------- Run the following command within the doc sub-directory to build the Sphinx documentation .. code-block:: bash (xms) $ cd doc (xms) $ make html Release Process --------------- For a new version number, say ``0.2.0``, perform the following operations on the ``main`` branch: 1. Edit ``doc/source/changelog.rst`` to reflect the new version. 2. Run .. code-block:: bash $ tbump --dry-run 0.2.0 3. If 2. succeeds, run .. code-block:: bash $ tbump 0.2.0 .. _cubed: https://cubed-dev.github.io/cubed/ .. _dask: https://www.dask.org/ .. _zarr: https://zarr.dev/