This project now uses UV for fast, reliable Python package management.
curl -LsSf https://astral.sh/uv/install.sh | sh
source $HOME/.cargo/envuv venv --system-site-packages# Install all runtime dependencies
uv sync
# Install with documentation dependencies
uv sync --extra docs
# Install with development dependencies
uv sync --extra dev
# Install all optional dependencies
uv sync --all-extras# Run a script using the project's virtual environment
uv run python src/HL/main.py
# Run a script directly (if defined in pyproject.toml)
uv run covapsy-main# Add runtime dependency
uv add numpy
# Add development dependency
uv add --dev pytest
# Add documentation dependency
uv add --optional docs mkdocsuv remove package-name# Update all packages
uv lock --upgrade
# Update specific package
uv add package-name@latestUV automatically manages virtual environments. You can also:
# Activate the virtual environment manually
source .venv/bin/activate
# Or run commands directly
uv run python your_script.pyThe uv.lock file pins exact versions for reproducible builds. Commit this file to version control.
The project dependencies have been moved from requirements.txt to pyproject.toml. The old requirements.txt is kept for reference but should not be used for installation.
pip install -r requirements.txtuv sync- Fast: 10-100x faster than pip
- Reliable: Deterministic resolution with lock files
- Cross-platform: Works on Linux, macOS, Windows
- Drop-in replacement: Compatible with existing Python tooling
- Modern: Built in Rust with modern dependency resolution