-
Notifications
You must be signed in to change notification settings - Fork 275
Expand file tree
/
Copy pathpyproject.toml
More file actions
168 lines (150 loc) · 4.3 KB
/
pyproject.toml
File metadata and controls
168 lines (150 loc) · 4.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
[build-system]
requires = ["uv_build>=0.8.19,<0.9.0"]
build-backend = "uv_build"
[project]
name = "mjlab"
version = "1.2.0"
license = "Apache-2.0"
license-files = ["LICENSE"]
readme = { file = "README.md", content-type = "text/markdown" }
authors = [
{name = "The MjLab Developers"},
]
keywords = ["mujoco", "mujoco-warp", "simulation", "reinforcement-learning", "robotics"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3 :: Only",
"Typing :: Typed",
"Environment :: GPU :: NVIDIA CUDA",
"Topic :: Scientific/Engineering",
"Natural Language :: English",
]
description = "Isaac Lab API, powered by MuJoCo-Warp, for RL and robotics research."
requires-python = ">=3.10,<3.14"
dependencies = [
"prettytable",
"tqdm",
"tyro>=1.0.1",
"torch>=2.7.0",
"torchrunx>=0.3.4",
"warp-lang>=1.12.0",
"mujoco-warp>=3.6.0",
"mujoco>=3.6.0",
"trimesh>=4.8.3",
"viser>=1.0.24",
"mediapy>=1.2.6",
"imageio-ffmpeg",
"tensordict",
"rsl-rl-lib==5.0.1",
"tensorboard>=2.20.0",
"onnxscript>=0.5.4",
"wandb>=0.22.3",
]
[project.urls]
"Bug Reports" = "https://github.com/mujocolab/mjlab/issues"
"Source" = "https://github.com/mujocolab/mjlab"
[project.scripts]
train = "mjlab.scripts.train:main"
play = "mjlab.scripts.play:main"
demo = "mjlab.scripts.demo:main"
list_envs = "mjlab.scripts.list_envs:main"
viz-nan = "mjlab.scripts.nan_viz:main"
export-scene = "mjlab.scripts.export_scene:main"
[dependency-groups]
dev = [
"ipdb>=0.13.13",
"pre-commit>=4.3.0",
"pyright>=1.1.408",
"onnxruntime>=1.19.0; python_version >= '3.11'",
"pytest>=v9.0.2",
"ruff>=v0.14.14",
"ty>=v0.0.14",
]
docs = [
"myst-parser>=4.0.1",
"sphinx>=8.1.3",
"sphinx-autodoc-typehints>=3.0.1",
"sphinx-autobuild>=2024.10.3",
"sphinx-book-theme>=1.1.4",
"sphinx-copybutton>=0.5.2",
"sphinx-design>=0.6.1",
"autodocsumm",
"sphinxemoji",
"sphinxcontrib.bibtex",
"sphinx-icon",
"sphinx-tabs",
"sphinx_multiversion",
]
[project.optional-dependencies]
cu128 = ["torch>=2.7.0"]
cpu = ["torch>=2.7.0"]
[tool.uv]
conflicts = [
[{extra = "cu128"}, {extra = "cpu"}],
]
# The nightly index (py.mujoco.org) only has dev builds, and PEP 440 ranks
# 3.6.0.devN < 3.6.0, so the >=3.6.0 floor in [project.dependencies] would
# reject them. This override loosens the constraint for uv resolution only.
override-dependencies = ["mujoco>=3.6.0.dev0"]
required-environments = [
"sys_platform == 'darwin' and platform_machine == 'arm64'",
"sys_platform == 'linux' and platform_machine == 'x86_64'",
]
[[tool.uv.index]]
url = "https://pypi.org/simple"
[[tool.uv.index]]
name = "nvidia"
url = "https://pypi.nvidia.com/"
explicit = true
[[tool.uv.index]]
name = "pytorch-cu128"
url = "https://download.pytorch.org/whl/cu128"
explicit = true
[[tool.uv.index]]
name = "pytorch-cpu"
url = "https://download.pytorch.org/whl/cpu"
explicit = true
[[tool.uv.index]]
name = "mujoco"
url = "https://py.mujoco.org"
explicit = true
[tool.uv.sources]
warp-lang = { index = "nvidia", marker = "sys_platform != 'darwin'" }
torch = [
{ index = "pytorch-cu128", extra = "cu128", marker = "sys_platform != 'darwin'" },
{ index = "pytorch-cpu", extra = "cpu", marker = "sys_platform != 'darwin'" },
]
mujoco = { index = "mujoco" }
mujoco-warp = { git = "https://github.com/google-deepmind/mujoco_warp", rev = "875c4caf06d71b12b2036c327e7a07ce08a78b9a" }
[tool.ruff]
src = ["src"] # Helpful for recognizing first-party imports.
indent-width = 2
exclude = [
"src/mjlab/utils/lab_api",
"typings",
]
[tool.ruff.lint]
select = ["E4", "E7", "E9", "F", "I", "B"]
ignore = ["B011"]
[tool.pyright]
pythonVersion = "3.10"
ignore = ["./typings", "./src/mjlab/utils/lab_api", "./docs"]
stubPath = "typings"
[tool.ty.environment]
extra-paths = ["typings"]
[tool.ty.src]
include = ["src", "tests"]
exclude = ["src/mjlab/utils/lab_api", "typings"]
[tool.pytest.ini_options]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
]
addopts = "--strict-markers"