Files
rerun-io--rerun/examples/python/dataloader/pyproject.toml
T
2026-07-13 13:05:14 +08:00

46 lines
1.8 KiB
TOML

[project]
name = "dataloader"
version = "0.1.0"
readme = "README.md"
requires-python = ">=3.12,<3.13"
dependencies = [
"rerun-sdk[dataloader,catalog,tracing]",
"huggingface-hub>=1.0",
"lerobot[dataset]==0.6.0",
]
[dependency-groups]
dev = ["mypy==1.19.1"]
[tool.rerun-example]
# Picked up by scripts/ci/isolated_examples.py and the `py-lint-isolated-examples` pixi task.
isolated = true
[tool.uv]
# The example is flat scripts, not a wheel — skip project build, just sync deps.
package = false
# pyarrow 24.0.0 segfaults rerun on import and ships an incomplete py.typed that breaks mypy.
# Isolated examples don't inherit the workspace root's constraint-dependencies, so pin it here.
# pyarrow arrives transitively (via rerun-sdk), hence a constraint rather than a direct dependency.
constraint-dependencies = ["pyarrow>=23.0.1,<24"]
# Default `uv sync` uses the in-repo editable rerun-sdk (monorepo dev mode).
# After syncing, also run `uv pip install ../../../rerun_py/rerun_dev_fixup` to
# install the .pth shim that makes `import rerun` resolve to the editable source tree.
#
# Standalone users (e.g. sparse-checkout of just this example) run instead:
# uv sync --no-sources --no-dev
# That ignores the path source below and resolves `rerun-sdk` from PyPI.
# rerun-dev-fixup is intentionally absent from this file: uv 0.7.x resolves all
# dependency groups and extras unconditionally, so any path-only package here would
# block standalone `--no-sources` resolution.
[tool.uv.sources]
rerun-sdk = { path = "../../../rerun_py", editable = true }
# Merged onto the shared base at `../_isolated/mypy.ini` by
# scripts/ci/isolated_examples.py — list the untyped third-party libs this
# example actually imports.
[[tool.mypy.overrides]]
module = ["lerobot.*", "torch.*", "torchvision.*", "diffusers.*", "accelerate.*"]
ignore_missing_imports = true