-
Notifications
You must be signed in to change notification settings - Fork 158
Expand file tree
/
Copy pathpyproject.toml
More file actions
129 lines (110 loc) · 2.92 KB
/
pyproject.toml
File metadata and controls
129 lines (110 loc) · 2.92 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
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name="mujoco-warp"
version = "3.8.1"
# TODO(team): create a distribution list
authors = [
{name = "Newton Developers", email = "mujoco@deepmind.com"},
]
description = "MuJoCo Warp (MJWarp)"
readme = {file = "README.md", content-type = "text/markdown"}
license = "Apache-2.0"
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Natural Language :: English",
"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.14",
"Topic :: Scientific/Engineering",
]
requires-python = ">=3.10"
dependencies = [
"absl-py",
"etils[epath]",
"mujoco>=3.8.0",
"numpy",
"warp-lang>=1.13",
]
[[tool.uv.index]]
name = "nvidia"
url = "https://pypi.nvidia.com/"
explicit = true
[[tool.uv.index]]
name = "mujoco"
url = "https://py.mujoco.org/"
explicit = true
[tool.uv.sources]
warp-lang = {index = "nvidia"}
mujoco = {index = "mujoco"}
[project.optional-dependencies]
dev = [
"pre-commit",
"pytest",
"pytest-xdist",
"ruff",
"pygls>=1.0.0,<2.0.0",
"lsprotocol>=2023.0.1,<2024.0.0",
"mujoco>=3.8.0.dev0",
"warp-lang>=1.11.0.dev0",
"mjviser>=0.0.10",
"pillow",
]
# TODO(team): cpu and cuda JAX optional dependencies are temporary, remove after we land MJX:Warp
cpu = [
"jax"
]
cuda = [
"jax[cuda12]"
]
[project.scripts]
mjwarp-testspeed = "mujoco_warp.testspeed:main"
mjwarp-viewer = "mujoco_warp.viewer:main"
mjwarp-record = "mujoco_warp.record:main"
[project.urls]
Homepage = "https://github.com/google-deepmind/mujoco_warp"
Documentation = "https://mujoco.readthedocs.io"
Repository = "https://github.com/google-deepmind/mujoco_warp"
Changelog = "https://mujoco.readthedocs.io/en/stable/changelog.html"
[tool.ruff]
line-length = 128
indent-width = 2
extend-exclude = ["*.ipynb"]
[tool.ruff.lint]
select = [
"D", # pydocstyle conventions and style
"I", # isort
"W", # pycodestyle
"F401", # unused imports
]
ignore = [
"D100", # missing docstring public module
"D103", # missing docstring public function
]
[tool.ruff.lint.isort]
force-single-line = true
single-line-exclusions = ["typing"]
[tool.ruff.lint.pycodestyle]
max-doc-length = 100
max-line-length = 128
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["D"]
"contrib/*" = ["D"]
[tool.ruff.format]
docstring-code-format = true
docstring-code-line-length = 100
[tool.pytest.ini_options]
testpaths = ["mujoco_warp"]
norecursedirs = ["benchmarks", "contrib"]
[tool.setuptools]
package-data = { "mujoco_warp" = ["test_data/**"] }
[tool.setuptools.packages.find]
include = ["mujoco_warp*"]