-
-
Notifications
You must be signed in to change notification settings - Fork 622
Expand file tree
/
Copy pathpyproject.toml
More file actions
210 lines (165 loc) · 5.17 KB
/
Copy pathpyproject.toml
File metadata and controls
210 lines (165 loc) · 5.17 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
[project]
name = "roboticstoolbox-python"
description = "A Python library for robotics education and research"
version = "1.4.2"
authors = [
{ name = "Jesse Haviland", email = "j.haviland@qut.edu.au" },
{ name = "Peter Corke", email = "rvc@petercorke.com" },
]
dependencies = [
"numpy",
"spatialmath-python>=1.1.16",
"spatialgeometry>=1.4.0",
"pgraph-python",
"scipy",
"matplotlib",
"ansitable",
"rtb-data>=2.0",
"progress",
"typing_extensions",
"colored>2.0.0",
"xacrodoc",
"robot_descriptions>=2.0,<3.0",
]
license = { file = "LICENSE" }
readme = "README.md"
requires-python = ">=3.10"
keywords = [
"python",
"robotics",
"robotics-toolbox",
"kinematics",
"dynamics",
"motion-planning",
"trajectory-generation",
"jacobian",
"hessian",
"control",
"simulation",
"robot-manipulator",
"mobile-robot",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
# Indicate who your project is intended for
"Intended Audience :: Developers",
# Pick your license as you wish (should match "license" above)
"License :: OSI Approved :: MIT License",
# Specify the Python versions you support here.
"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",
]
[project.urls]
homepage = "https://petercorke.github.io/robotics-toolbox-python/"
documentation = "https://petercorke.github.io/robotics-toolbox-python/"
repository = "https://github.com/petercorke/robotics-toolbox-python"
[project.optional-dependencies]
swift = ["swift-sim>=2.0.0", "websockets"]
collision = ["coal; sys_platform != 'win32'", "trimesh"]
qp = ["qpsolvers", "quadprog"]
tool = ["ipython", "pygments"]
all = [
"swift-sim>=2.0.0",
"websockets",
"qpsolvers",
"quadprog",
"coal; sys_platform != 'win32'",
"trimesh",
"ipython",
"pygments",
]
dev = [
"pytest",
"pytest-cov",
"pytest-timeout",
"pyyaml",
"sympy",
"qpsolvers",
"quadprog",
"bdsim",
"ruff",
"coal; sys_platform != 'win32'",
"trimesh",
"nbmake",
]
# Backward-compatible alias; notebook tooling is included in "dev".
nb = ["nbmake"]
docs = [
"sphinx",
"sphinx_rtd_theme",
"sphinx-pyrunblock",
"sphinx_autodoc_typehints",
"sphinx-favicon",
"sphinxcontrib-bibtex",
"sphinx-copybutton",
"sphinx-codeautolink",
]
[project.scripts]
eigdemo = "roboticstoolbox.demo.eigdemo:main"
tripleangledemo = "roboticstoolbox.demo.tripleangledemo:main"
twistdemo = "roboticstoolbox.demo.twistdemo:main"
rtbtool = "roboticstoolbox.bin.rtbtool:main"
[build-system]
requires = ["scikit-build-core>=0.9", "numpy", "nanobind>=2"]
build-backend = "scikit_build_core.build"
[tool.scikit-build]
wheel.packages = ["src/roboticstoolbox"]
sdist.include = [
"src/roboticstoolbox",
"tests",
"CMakeLists.txt",
"README.md",
"LICENSE",
]
sdist.exclude = ["rtb-data/**"]
# Set RTB_PURE_WHEEL=1 to build a genuinely pure-Python wheel: skips both
# compiled extensions (CMakeLists.txt's RTB_BUILD_EXTENSIONS option) and
# forces the wheel tag to py3-none-any (wheel.platlib=false — confirmed by
# reading scikit-build-core's own wheel_tag.py: root_is_purelib forces
# plats=["any"], abi="none", pyvers=["py3"]). Used for the Pyodide/
# JupyterLite build (see release.yml's build_pyodide job) -- both _fknm_c
# and _frne_c have complete, tested pure-Python fallbacks (fknm.py/frne.py,
# tests/test_fknm_fallback.py), so there's nothing missing at runtime.
# pip always prefers a platform-specific compiled wheel over py3-none-any
# when both are published (packaging.tags ranks specific tags higher) --
# this wheel is only ever selected where no compiled wheel exists, i.e.
# Pyodide today.
[[tool.scikit-build.overrides]]
if.env.RTB_PURE_WHEEL = true
wheel.platlib = false
cmake.define.RTB_BUILD_EXTENSIONS = "OFF"
[tool.ruff]
line-length = 88
exclude = [".git", "build", "dist", "docs", ".venv", ".tox"]
[tool.ruff.lint]
ignore = ["F821", "E741", "E203"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
[tool.cibuildwheel]
build = ["cp310-*", "cp311-*", "cp312-*", "cp313-*", "cp314-*"]
skip = ["*musllinux*"]
[tool.cibuildwheel.macos]
archs = ["auto"] # arm64 only from macos-latest; x86_64 EOL
[tool.cibuildwheel.linux]
archs = [
"auto",
] # native arch only; arm64 uses ubuntu-24.04-arm runner (no QEMU)
[tool.cibuildwheel.windows]
archs = ["AMD64"]
# No [tool.cibuildwheel.pyodide] section -- the wasm/Pyodide wheel is no
# longer built via cibuildwheel's Pyodide platform (cross-compiling for a
# specific Emscripten/Pyodide ABI version was the whole source of the
# JSPI/tag-matching saga, see git history on this file and release.yml).
# It's built as an ordinary pure-Python wheel on a normal runner instead --
# see the RTB_PURE_WHEEL override above and release.yml's build_pyodide job.
[tool.pytest.ini_options]
pythonpath = ["."]
filterwarnings = [
"ignore:FigureCanvasAgg is non-interactive:UserWarning",
]
[tool.coverage.run]
omit = ["src/roboticstoolbox/demo/*", "test_*.py"]