Installation and Virtual Environment#
For developing dysh code, we recommend the use of a python virtual environment. The example below uses uv. Before installing dysh, developers should install uv following one of the methods in the uv docs. uv is the only tool that can sync the environment to the lockfile, so to install the known working development environment, uv is needed.
Clone the repo, install dysh and its required packages. This will use the uv.lock file containing the exact dependencies to create a new virtual environment in
dysh/.venv.$ git clone git@github.com:GreenBankObservatory/dysh.git $ cd dysh $ uv sync
Verify the installation. Below,
uv runis used to execute commands, however one could also runsource .venv/bin/activatewhich eliminates the need to prependuv runto each command.# should point to $CWD/.venv/bin/dysh $ uv run which dysh # should print dysh version and exit $ uv run dysh --version
Optional: run the test suite
$ uv run pytest
You can optionally add
-n autoto spawn multiple runners for pytest.Optional: build the documentation locally
$ cd docs/source $ uv run make html $ xdg-open _build/html/index.html