Installation#
Installing from PyPI#
reVReports can be installed via pip from PyPI.
pip install reVReports
Note
It is recommended to install and run reVReports from an isolated
environment (pixi or conda) rather than a system Python.
Handling ImportErrors#
If you encounter an ImportError, it usually means that Python could not
find reVReports in your active environment. You can inspect the search path
with:
import sys
sys.path
If multiple Python installations are present, ensure reVReports is installed
in the interpreter you are using (for example, avoid /usr/bin/python).
Using a dedicated environment helps avoid these conflicts.
Installing from source (recommended for development)#
We keep a version-controlled pixi.lock so contributors share the same
dependencies. To work from source:
Install pixi.
Clone the repository:
SSH:
git clone git@github.com:NatLabRockies/reVReports.gitHTTPS:
git clone https://github.com/NatLabRockies/reVReports.git
Sync and enter the development environment:
pixi install --frozen -e dev pixi shell -e dev
Verify the CLI:
pixi run -e dev reVReports --help
Common environments#
default: runtime dependencies for the CLI and librarydev: adds linting/formatting tools (Ruff)test: adds pytest and coverage extrasdoc: adds Sphinx and doc build extrasbuild: packaging helpers
You may use other environment managers (conda, mamba), but we only
support Pixi-managed setups when diagnosing environment issues.