Installing astropathdb-py#
Install astropathdb-py#
To install the package, start by cloning the repository with:
git clone https://github.com/AstroPathJHU/astropathpy-db.git
Navigate to the repository in a command prompt and use uv to create the project environment and install the locked dependencies:
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:
pip install .[sciserver]
See Getting Started with SciServer Compute for the full container instructions.
For use in a Jupyter notebook use:
uv sync --no-default-groups --extra jupyter
For building docs only:
uv sync --no-default-groups --group docs
For testing only use:
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:
uv run pytest tests