Installation¶
For users¶
The package is installable from PyPI. We recommend installing it into a fresh virtual environment using uv:
$ uv venv hera_pspec
$ source hera_pspec/bin/activate
$ uv pip install hera_pspec
New versions are frequently released on PyPi.
For developers¶
If you are developing and/or want to use the latest working version
of hera_pspec, you can directly install from the GitHub repository.
Developing¶
The repository already includes a uv.lock file and dependency groups
for development, documentation, and tests. With uv installed, the
recommended setup is:
$ git clone https://github.com/HERA-Team/hera_pspec.git
$ cd hera_pspec
$ uv sync --all-extras --dev
This installs the package along with the dependencies used in CI for testing and documentation work.
Running Tests¶
From the source hera_pspec directory, common development commands are:
$ uv run pytest
$ uv run pytest -Werror
The repository pytest configuration already includes the standard coverage
options used in CI, so uv run pytest will also produce coverage output.