.. include:: ./../defs/external_refs.txt .. _astropathdbpy_install: ======================================= Installing astropathdb-py ======================================= Install astropathdb-py ====================================== To install the package, start by cloning the repository with: .. code-block:: text git clone https://github.com/AstroPathJHU/astropathpy-db.git Navigate to the repository in a |cmd| and use |uv| to create the project environment and install the locked dependencies: .. code-block:: text uv sync --no-default-groups |sciserver_compute| containers ship their own |python| environment, so the ``sciserver`` extra (which applies some enforced dependencies) is installed into that environment rather than a |uv| project environment: .. code-block:: text pip install .[sciserver] See :ref:`creating_containers` for the full container instructions. For use in a |jupyter| notebook use: .. code-block:: text uv sync --no-default-groups --extra jupyter For building docs only: .. code-block:: text uv sync --no-default-groups --group docs For testing only use: .. code-block:: text uv sync --no-default-groups --group test For development, ``uv sync`` installs the default ``dev`` dependency group, which includes the testing, documentation, and |jupyter| dependencies. Run tools inside the project environment with ``uv run``: .. code-block:: text uv run pytest tests