-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
200 lines (175 loc) · 4.24 KB
/
pyproject.toml
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
[project]
name = "rod"
dynamic = ["version"]
requires-python = ">= 3.10"
description = "The ultimate Python tool for RObot Descriptions processing."
authors = [
{ name = "Diego Ferigo", email = "dgferigo@gmail.com" },
]
maintainers = [
{ name = "Filippo Luca Ferretti", email = "filippo.ferretti@iit.it" },
{ name = "Carlotta Sartore", email = "carlotta.sartore@iit.it" },
]
license.file = "LICENSE"
keywords = [
"description",
"gazebo",
"parser",
"robot",
"robotics",
"ros",
"sdf",
"sdformat",
"simulator",
"simulation",
"urdf",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Framework :: Robot Framework",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"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",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Games/Entertainment :: Simulation",
]
dependencies = [
"coloredlogs",
"mashumaro",
"numpy",
"packaging",
"resolve-robotics-uri-py",
"scipy",
"trimesh",
"xmltodict",
]
[project.optional-dependencies]
style = [
"black ~= 24.0",
"isort",
]
pptree = [
"pptree",
]
testing = [
"idyntree >= 12.2.1",
"pytest >=6.0",
"pytest-icdiff",
"robot-descriptions",
]
all = [
"rod[style,pptree,testing]",
]
[project.readme]
file = "README.md"
content-type = "text/markdown"
[project.urls]
Changelog = "https://github.com/ami-iit/rod/releases"
Source = "https://github.com/ami-iit/rod"
Tracker = "https://github.com/ami-iit/rod/issues"
# ===========
# Build tools
# ===========
[build-system]
build-backend = "setuptools.build_meta"
requires = [
"setuptools>=64",
"setuptools-scm[toml]>=8",
"wheel",
]
[tool.setuptools]
package-dir = { "" = "src" }
[tool.setuptools_scm]
local_scheme = "dirty-tag"
# =================
# Style and testing
# =================
[tool.black]
line-length = 88
[tool.isort]
multi_line_output = 3
profile = "black"
[tool.pytest.ini_options]
addopts = "-rsxX -v --strict-markers"
minversion = "6.0"
testpaths = [
"tests",
]
[tool.cibuildwheel]
build-frontend = "build"
# ==================
# Ruff configuration
# ==================
[tool.ruff]
exclude = [
".git",
".pytest_cache",
".ruff_cache",
".vscode",
".devcontainer",
"__pycache__",
]
preview = true
[tool.ruff.lint]
# https://docs.astral.sh/ruff/rules/
select = [
"B",
"E",
"F",
"I",
"W",
"RUF",
"UP",
"YTT",
]
ignore = [
"B008", # Function call in default argument
"B024", # Abstract base class without abstract methods
"E402", # Module level import not at top of file
"E501", # Line too long
"E731", # Do not assign a `lambda` expression, use a `def`
"E741", # Ambiguous variable name
"I001", # Import block is unsorted or unformatted
"RUF003", # Ambigous unicode character in comment
]
[tool.ruff.lint.per-file-ignores]
# Ignore `E402` (import violations) in all `__init__.py` files
"__init__.py" = ["F401", "F821"]
# ==================
# Pixi configuration
# ==================
[tool.pixi.project]
channels = ["conda-forge"]
platforms = ["linux-64"]
[tool.pixi.dependencies]
resolve-robotics-uri-py = "*"
trimesh = "*"
xmltodict = "*"
coloredlogs = "*"
mashumaro = "*"
gz-tools2 = "*"
libsdformat13 = "*"
numpy = "*"
scipy = "*"
packaging = "*"
[tool.pixi.pypi-dependencies]
rod = { path = ".", editable = true }
[tool.pixi.environments]
default = { solve-group = "default" }
all = { features = ["all", "style", "pptree", "testing"], solve-group = "default" }
pptree = { features = ["pptree"], solve-group = "default" }
style = { features = ["style"], solve-group = "default" }
testing = { features = ["testing"], solve-group = "default" }
[tool.pixi.feature.testing.tasks]
test = "pytest -vv"