Files
UniversalHumanoid/pyproject.toml
T
2026-11-03 19:46:08 +08:00

75 lines
2.5 KiB
TOML

[build-system]
requires = ["setuptools>=77,<83"]
build-backend = "setuptools.build_meta"
[project]
name = "universal-humanoid"
version = "0.2.0"
description = "An agent-ready framework for modular humanoid reinforcement learning with mjlab and MuJoCo Warp"
readme = "README.md"
# Original code: Apache-2.0. The wheel also redistributes BSD/MIT components.
license = "Apache-2.0 AND BSD-3-Clause AND MIT"
license-files = ["LICENSE", "NOTICE.md", "licenses/*.txt"]
requires-python = ">=3.11,<3.14"
# mjlab and rsl_rl are vendored packages, NOT separately installed distributions.
dependencies = [
"torch==2.14.0", "mujoco==3.16.0", "mujoco-warp==3.16.0", "warp-lang==1.18.0",
"numpy", "tensordict>=0.7", "torchrunx>=0.3.4", "tyro>=1.0.1", "trimesh>=4.8.3",
"scipy>=1.15", "viser>=1.0.27", "mjviser>=0.0.14", "mediapy>=1.2.7",
"imageio", "imageio-ffmpeg", "prettytable", "tqdm", "PyYAML", "GitPython>=3.1.59",
"tensorboard>=2.20", "onnx", "onnxscript>=0.5.4", "onnxruntime>=1.19",
"wandb>=0.22.3",
]
[project.optional-dependencies]
dev = ["pytest>=8", "ruff>=0.9", "build", "setuptools>=77,<83"]
# Compatibility extras; export/analysis are now included in the default installation.
export = []
analysis = []
[project.scripts]
uh = "universal_humanoid.cli:main"
# Same tools as dev, without the project/CUDA dependencies on hosted CI runners.
[dependency-groups]
ci = ["pytest>=8", "ruff>=0.9", "build", "setuptools>=77,<83"]
[tool.setuptools.packages.find]
where = ["src", "rl"]
include = ["universal_humanoid*", "mjlab*", "rsl_rl*"]
namespaces = true
[tool.setuptools.package-data]
universal_humanoid = ["robot_specs/*.json"]
mjlab = ["**/*.xml", "**/*.stl", "**/*.STL", "**/*.obj", "**/*.png", "**/*.jpg", "**/*.jpeg", "**/*.json", "**/*.txt", "**/*.md", "**/LICENSE*", "LICENSE", "py.typed"]
rsl_rl = ["LICENSE", "**/*.txt", "**/LICENSE*", "*.md"]
[tool.pytest.ini_options]
pythonpath = ["src"]
testpaths = ["tests"]
markers = ["integration: requires the installed vendored mjlab environment and assets"]
[tool.ruff]
line-length = 100
extend-exclude = ["rl/mjlab", "rl/rsl_rl", "rl/upstream"]
[tool.ruff.lint]
select = ["E", "F", "I"]
[tool.uv]
environments = ["sys_platform == 'linux' and platform_machine == 'x86_64'"]
[[tool.uv.index]]
name = "pytorch-cu130"
url = "https://download.pytorch.org/whl/cu130"
explicit = true
[[tool.uv.index]]
name = "nvidia"
url = "https://pypi.nvidia.com/"
explicit = true
[tool.uv.sources]
torch = { index = "pytorch-cu130" }
warp-lang = { index = "nvidia" }