Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
270 lines (234 loc) · 5.8 KB
/
Copy pathpyproject.toml
File metadata and controls
270 lines (234 loc) · 5.8 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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
# SPDX-FileCopyrightText: Copyright (c) 2023-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
[build-system]
requires = ["setuptools>=45", "setuptools_scm>=6.2", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "nvidia-curobo"
dynamic = ["version"]
description = "GPU robot motion toolkit containing cuda accelerated kinematics, IK, MPC, Global motion planning, and optimization solvers."
readme = "README.md"
license = {text = "Apache-2.0"}
authors = [{name = "NVIDIA"}]
requires-python = ">=3.10"
classifiers = [
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Intended Audience :: Developers",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering :: Robotics",
]
dependencies = [
"importlib_resources",
"matplotlib",
"networkx",
"numpy",
"numpy-quaternion",
"Pillow",
"pyyaml",
"scipy>=1.7.0",
"setuptools_scm>=6.2",
"tqdm",
"trimesh",
"viser>=1",
"warp-lang>=0.10.0",
"wheel",
"yourdfpy>=0.0.53",
]
[project.optional-dependencies]
cu12 = [
"cuda-core[cu12]>=0.7",
# "nvidia-cuda-cccl-cu12>=12", # Needed only for CCCL/cooperative_groups headers.
"nvidia-cuda-runtime-cu12>=12",
]
cu13 = [
"cuda-bindings>=13.0.3",
"cuda-core[cu13]>=0.7",
# "nvidia-cuda-cccl>=13", # Needed only for CCCL/cooperative_groups headers.
"nvidia-cuda-runtime>=13",
]
cu12-torch = [
"cuda-core[cu12]>=0.6",
# "nvidia-cuda-cccl-cu12>=12", # Needed only for CCCL/cooperative_groups headers.
"nvidia-cuda-runtime-cu12>=12",
"torch>=2.5",
]
cu13-torch = [
"cuda-bindings>=13.0.3",
"cuda-core[cu13]>=0.6",
# "nvidia-cuda-cccl>=13", # Needed only for CCCL/cooperative_groups headers.
"nvidia-cuda-runtime>=13",
"torch>=2.9",
]
usd = [
"usd-core",
]
dev = [
"build",
"ruff",
"pytest>6.2.5,<9.0",
"pytest-cov",
"pytest-xdist",
"ty",
]
doc = [
"anybadge",
"sphinx",
"sphinx_rtd_theme",
"graphviz>=0.20.1",
"furo",
"myst-parser",
"sphinx-copybutton",
"sphinx_reredirects",
]
benchmark = [
"tabulate",
"pandas",
"robometrics[evaluator] @ git+https://github.com/fishbotics/robometrics.git",
"pin",
"seaborn",
]
[project.urls]
Homepage = "https://nvlabs.github.io/curobo"
Repository = "https://github.com/NVlabs/curobo"
[tool.setuptools]
include-package-data = true
[tool.setuptools.packages.find]
exclude = ["tests"]
[tool.setuptools.package-data]
# Include kernel source files for cuda.core runtime compilation
"curobo._src.curobolib.kernels" = ["**/*.cu", "**/*.cuh", "**/*.h"]
[tool.ruff]
line-length = 99
exclude = [".git", "build", "deprecated", "dist", "venv"]
target-version = "py38"
[tool.ruff.format]
# Use ruff's formatter instead of black (same style, much faster)
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.ruff.lint]
# Enable flake8 rules (F), pycodestyle errors (E) and warnings (W)
# Plus docstring conventions (D) and isort (I)
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"D", # pydocstyle
]
ignore = [
"E203", # whitespace before ':'
"E731", # do not assign a lambda expression, use a def
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.isort]
# Replicate isort configuration
section-order = ["future", "standard-library", "third-party", "first-party", "local-folder"]
known-first-party = ["curobo"]
[tool.setuptools_scm]
version_scheme = "no-guess-dev"
local_scheme = "dirty-tag"
[tool.pytest.ini_options]
minversion = "7.0"
testpaths = ["curobo/tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = [
"-v",
"-l",
"-ra",
"--strict-markers",
"--strict-config",
"-n", "4",
"--dist", "loadscope",
]
norecursedirs = [
".git",
".tox",
"dist",
"build",
"*.egg",
"__pycache__",
"_build",
"docs",
"examples",
"content",
]
log_cli = false
log_cli_level = "INFO"
log_cli_format = "%(asctime)s [%(levelname)8s] %(message)s"
log_cli_date_format = "%Y-%m-%d %H:%M:%S"
[tool.coverage.report]
# NOTE: Single-quoted strings are required in TOML for regular expressions
exclude_lines = [
"pragma: no cover", # Need to re-enable the standard no cover match
'^\s*pass\s*$', # Skip any pass lines
"wp.kernel",
"wp.func",
"torch.jit.script",
"abstractmethod",
"def backward",
"staticmethod\ndef forward",
"get_torch_jit_decorator",
"deprecated",
]
omit = [
"curobo/examples/*",
"curobo/tests/*",
"curobo/content",
"curobo/_src/curobolib/*",
"curobo/_src/cuda_robot_model/usd_kinematics_parser.py",
]
[tool.interrogate]
ignore-regex = ["forward", "backward"]
[tool.ty]
# Files and directories to exclude from type checking
extend-exclude = [
".git",
"build",
"deprecated",
"dist",
"venv",
".venv",
]
# Configure specific type checking rules
# See: https://docs.astral.sh/ty/rules/
[tool.ty.lint]
# Add any specific rule configurations here as needed
[tool.uv]
conflicts = [
[
{ extra = "cu12" },
{ extra = "cu13" },
],
[
{ extra = "cu12" },
{ extra = "cu13-torch" },
],
[
{ extra = "cu12-torch" },
{ extra = "cu13" },
],
[
{ extra = "cu12-torch" },
{ extra = "cu13-torch" },
],
]
[[tool.uv.index]]
name = "pytorch-cu130"
url = "https://download.pytorch.org/whl/cu130"
explicit = true
[[tool.uv.index]]
name = "pytorch-cu128"
url = "https://download.pytorch.org/whl/cu128"
explicit = true
[tool.uv.sources]
torch = [
{ index = "pytorch-cu128", extra = "cu12-torch" },
{ index = "pytorch-cu130", extra = "cu13-torch" },
]