.. highlight:: shell

============
Installation
============


Using pip
--------------

**so far only a development (editable) version is installable [locally] via pip**

Please install as indicated below under "using git"

Using git
---------

Regular install from local repository

::

    git clone https://git.gfz-potsdam.de/hydro/hygra/hygra.git 
    pip install -r path/to/hygra/requirements.txt
    pip install path/to/hygra

For development, you might prefer installing as *editable*

::

    pip install -e <path/to/hygra>


Build documentation
-------------------

Install additional requirements

.. code-block:: console

    pip install -r path/to/hygra/docs/requirements.txt

Build

.. code-block:: console

    cd docs/
    make html

HTML documentation should now be found in `docs/_build/html/`.


Tests
-----

Install additional requirements

.. code-block:: console

    pip install -r tests/requirements.txt

Run all tests

.. code-block:: console

    cd tests/
    pytest

.. _Github repo: https://git.gfz-potsdam.de/hydro/hygra/hygra.git 
