# =============================================================================
# eclise.phyworld runtime dependencies (synthetic physics video generation)
#
# This env owns simulators and writes clip shards. It never trains anything and
# never loads a video model, so it is deliberately torch-free: upstream's
# generators import torch only to call `torch.manual_seed`, which numpy's
# Generator covers. That keeps the env small and lets generation run on
# CPU-only nodes.
#
# Python 3.10 in the main env; the combinatorial family additionally installs
# into a Python 3.9 env (environment-phyre.yml) because PHYRE's only prebuilt
# wheel is cp39. See README's "The combinatorial family".
# =============================================================================

# >=1.25 for Generator.spawn(), which is how each shard gets an independent
# random stream (see generate.py's seeding note).
numpy>=1.25,<3

# --- Rigid-body physics ------------------------------------------------------
# The `Box2D` import name is provided by box2d-py (the maintained pybox2d fork
# with wheels). Upstream phyworld does `from Box2D import *`; we import the
# handful of names we use explicitly instead.
box2d-py>=2.3.5

# --- Shard IO ----------------------------------------------------------------
# `eclise.clips` (the shared clip contract) is installed editable from
# environment.yml's pip section (`-e ../clips`); editable path
# deps are not valid PEP 508 specifiers so they cannot live here. It brings h5py,
# imageio and av transitively; they are named here too because this project's own
# scripts use them directly.
h5py>=3.10
imageio[ffmpeg]>=2.36
av>=13.1

# --- State recovery from rendered frames -------------------------------------
# Hough circle detection for the verification/eval path. Headless: these envs
# run on compute nodes with no display, and plain opencv-python pulls in GUI
# libraries that then fail to load.
opencv-python-headless>=4.10

# --- Downloading the published datasets --------------------------------------
huggingface_hub>=0.34.0,<1.0

# --- CLI + progress ----------------------------------------------------------
draccus            # dataclass CLI config (as in models/robotics/libero, hierarchical_robotics)
tqdm

# --- Figures for the verification report -------------------------------------
matplotlib>=3.8

# NOTE: PHYRE (the combinatorial family's simulator) is NOT a pip requirement of
# this file. Its only prebuilt wheel is cp39, so it lives in a second conda env
# created by `scripts/setup_phyre.sh` (see environment-phyre.yml). That env
# installs the same editable packages as the main one, so combinatorial
# generation still runs `scripts/generate.py` and writes through the same
# ShardWriter. Every other family works without it, and the published
# combinatorial HDF5 can be *read* with no PHYRE present at all.
