-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
173 lines (161 loc) · 5.09 KB
/
Copy pathpyproject.toml
File metadata and controls
173 lines (161 loc) · 5.09 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
169
170
171
172
173
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "roboverse-metasim" # PyPI name; the import name stays `metasim` (`metasim` on PyPI is an unrelated project)
version = "0.2.0"
description = "MetaSim: A unified simulation framework for robotics"
requires-python = ">=3.8"
license = { file = "LICENSE" }
dependencies = [
"defusedxml",
"gymnasium",
"huggingface-hub",
"imageio[ffmpeg]",
"loguru",
"numpy",
"numpy-quaternion",
"opencv-python>=4.11,<4.12",
"pillow",
"portalocker",
"pyyaml",
"scipy",
"tomli; python_version < '3.11'",
"torch",
"torchvision",
]
[project.optional-dependencies]
dev = [
"pytest",
"pytest-cov",
"ruff",
]
examples = ["rich", "rootutils", "tyro"]
teleop = ["pygame"]
visualization = ["rerun-sdk", "trimesh", "viser", "yourdfpy"]
# Simulator extras are intended for the per-simulator Python environments documented in
# docs/source/get_started/installation.rst, not as an arbitrary co-installable matrix.
isaacsim = [
"torch==2.7.0+cu128",
"torchvision==0.22.0+cu128",
"isaacsim[all,extscache]==5.0.0",
]
isaacsim211 = [
"torch==2.5.1+cu118",
"torchvision==0.20.1+cu118",
"isaacsim[all,extscache]==4.5.0",
]
isaacgym = [
"numpy<2",
"fsspec<=2025.3.0", # fsspec==2025.3.1 has bug with python 3.8
]
mujoco = ["mujoco", "dm-control"]
mjx = ["torch==2.7.0", "mujoco-mjx>=3.2.7", "dm-control", "jax[cuda]==0.6.0"]
sapien2 = ["mani-skill2 @ git+https://github.com/haosulab/ManiSkill.git@v0.5.3"]
sapien3 = ["sapien>=3.0.0.b1"]
pybullet = ["numpy<2", "pybullet"]
genesis = [
"genesis-world",
"libigl==2.5.1", # for genesis 0.2.1, see https://github.com/Genesis-Embodied-AI/Genesis/issues/1156#issuecomment-3069006079
"open3d",
]
blender = ["bpy"]
# SuperDex (Meta Mochi engine) publishes Python >= 3.12 wheels only; on older interpreters this extra
# installs just the helpers and `metasim.sim.superdex` raises an actionable ImportError.
superdex = [
"superdex-physics; python_version >= '3.12'",
"superdex-robotics; python_version >= '3.12'",
"trimesh",
"pyrender",
]
robosplatter = [
"robo-splatter @ git+https://github.com/HorizonRobotics/RoboSplatter.git@v0.1.2",
"setuptools==59.5.0"
]
newton = [
"warp-lang>=1.11.0",
"mujoco>=3.3.7",
"mujoco-warp>=0.0.1",
"newton @ git+https://github.com/newton-physics/newton.git",
"imgui-bundle",
"pycollada",
]
[tool.uv]
index-strategy = "unsafe-best-match"
[tool.uv.pip]
index-url = "https://download.pytorch.org/whl/cu128"
extra-index-url = [
"https://pypi.org/simple",
"https://pypi.nvidia.com",
]
[tool.ruff]
line-length = 120
format.preview = true
lint.preview = false
target-version = "py38"
lint.select = [
"B", # flake8: bugbear
"E", # pycodestyle
"F", # pyflakes
"FA", # flake8: future annotations
"I", # isort
"PLC", # pylint
"PLE", # pylint
"PLW", # pylint
"UP", # pyupgrade
"NPY", # numpy-specific rules
"RUF", # ruff-defined rules
"T20", # flake8: check prints
"D", # pydocstyle
]
lint.ignore = [
"B007", # allow used loop control variable without leading underscore
"D100", # allow no docstrings in public module
"D105", # allow magic methods without docstring
"D107", # allow __init__ without docstring
"E266", # allow multiple leading # in comments
"E402", # allow imports not at the top of the file
"E501", # allow long lines
"E722", # allow bare except
"F403", # allow `from module import *`
"F841", # allow unused variable
"PLC0206", # allow directly iterating over a dict
"PLC0415", # allow imports not at the top of the file
"PLC1901", # allow `if some_string == ""`
"PLW1514", # allow open without encoding argument
"PLW2901", # allow for loop variable overwriting
"PLW0602", "PLW0603", "PLW0604", # allow global variables, TODO: add docstring and remove this
"UP031", # allow `%` to be used to format strings
"NPY002", # allow legacy `numpy.random` functions
"RUF003", # allow ambiguous characters in comments
"RUF005", # allow using `+` to concatenate collections
"RUF009", # allow function calls in dataclass default values
"RUF012", # allow mutable class attributes
"RUF059", # allow unused variable
"PLE0604", # allow __all__ to be nested but still all elements are strings
]
extend-exclude = [
"wandb",
"third_party",
"tmp",
"assets",
"docker"
]
[tool.setuptools.packages.find]
include = ["metasim", "metasim.*"]
[tool.setuptools.package-data]
metasim = ["data/**/*"]
[tool.ruff.lint.per-file-ignores]
## For unit test, allow no docstrings
"metasim/test/**.py" = ["D"]
## For python files in docs, allow no docstrings
"docs/**.py" = ["D"]
"metasim/sim/**.py" = ["D"]
"metasim/utils/teleop_utils.py" = ["D"] # FIXME: Chaoyi add docstring and remove this
[tool.ruff.lint.isort]
known-first-party = ["metasim"]
known-third-party = ["wandb", "isaacsim"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.pytest.ini_options]
testpaths = ["metasim/test"]