-
Notifications
You must be signed in to change notification settings - Fork 258
Expand file tree
/
Copy pathpyproject.toml
More file actions
149 lines (134 loc) · 3.87 KB
/
Copy pathpyproject.toml
File metadata and controls
149 lines (134 loc) · 3.87 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
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "reachy_mini"
version = "1.9.0rc1"
authors = [{ name = "Pollen Robotics", email = "contact@pollen-robotics.com" }]
description = ""
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"numpy>=2.2.5",
"scipy>=1.15.3, <2.0.0",
"reachy_mini_motor_controller>=1.5.5",
"psutil",
"jinja2",
"uvicorn[standard]",
"fastapi",
"pydantic>=2.12.5,<3.0.0",
"python-multipart>=0.0.27",
"starlette<1.0.0", # TODO: update TemplateResponse(request, name, context) before allowing Starlette 1.x
"pyserial",
"huggingface-hub>=1.17.0,<2.0.0",
"reachy-mini-rust-kinematics>=1.0.3",
"asgiref",
"aiohttp>=3.14.0",
"log-throttling==0.0.3",
"pyusb>=1.2.1",
"libusb_package>=1.0.26.3",
"pip>=26.1",
"platformdirs",
"rich",
"questionary",
"websockets>=12,<16",
"toml",
"rustypot>=1.4.2",
"pyyaml>=6.0",
"requests>=2.33.0",
"zeroconf>=0.149.7,<1",
"pycaw>=20240210; sys_platform == 'win32'",
"pulsectl>=24.1.0; sys_platform == 'linux'",
"gstreamer-bundle==1.28.3; sys_platform != 'linux'",
# OS-specific: use PyGObject for Linux
"PyGObject>=3.42.2,<=3.46.0; sys_platform == 'linux'",
]
[project.optional-dependencies]
examples = [
"pynput",
"soundfile",
"opencv-python<=5.0",
"cv2_enumerate_cameras>=1.2.1",
"gradio-client",
]
mujoco = ["mujoco==3.3.0"]
nn_kinematics = ["onnxruntime==1.22.1"]
placo_kinematics = [
"placo==0.9.14; sys_platform != 'win32'",
"tornado>=6.5.5; sys_platform != 'win32'", # security floor for meshcat transitive dependency
]
rerun = ["rerun-sdk>=0.29.0,<=0.31.3"]
wireless-version = [
"semver>=3,<4",
"nmcli>=1.5; sys_platform == 'linux'",
# Sealed BLE WiFi provisioning (wifi_config.py) does X25519 + HKDF +
# AES-GCM to keep the WiFi password off the air in cleartext. Was only
# present transitively before; declared here now that it's a direct import.
"cryptography>=42.0",
"pollen_BMI088_imu_library; sys_platform == 'linux'",
"gpiozero>=2.0.0; sys_platform == 'linux'",
"lgpio>=0.2.2.0; sys_platform == 'linux'",
]
opencv = ["opencv-python<=5.0", "cv2_enumerate_cameras>=1.2.1"]
all = [
"reachy_mini[examples]",
"reachy_mini[mujoco]",
"reachy_mini[nn_kinematics]",
"reachy_mini[placo_kinematics]",
"reachy_mini[rerun]",
"reachy_mini[wireless-version]",
"reachy_mini[opencv]",
]
[dependency-groups]
dev = [
"pytest>=9.0.3",
"pytest-asyncio",
"ruff==0.12.0",
"onshape-to-robot==1.7.6",
"pre-commit",
"mypy==1.18.2",
"types-requests",
"types-toml",
"types-PyYAML",
]
[project.scripts]
reachy-mini-daemon = "reachy_mini.daemon.app.main:main"
reachy-mini-app-assistant = "reachy_mini.apps.app:main"
reachy-mini-reflash-motors = "reachy_mini.tools.reflash_motors:main"
[tool.uv]
exclude-newer = "7 days"
[tool.uv.exclude-newer-package]
"pollen_BMI088_imu_library" = false
[tool.setuptools]
package-dir = { "" = "src" }
include-package-data = true
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
reachy_mini = ["**/*"] # includes all non .py files
[tool.ruff]
exclude = [
"src/reachy_mini/__init__.py",
"build/*",
"conftest.py",
"src/reachy_mini_dashboard/*",
"tests/*",
]
lint.extend-select = ["I", "D"]
lint.ignore = [
"D203", # Incompatible with D211
"D213", # Incompatible with D212
]
[tool.pytest.ini_options]
testpaths = ["tests/unit_tests"]
markers = [
"audio: mark test as requiring audio hardware",
"video: mark test as requiring video hardware",
"wireless: mark test as requiring wireless Reachy Mini",
"ipc_resolution: override the resolution used by the ipc_video_source fixture",
]
[tool.mypy]
python_version = "3.12"
files = ["src/", "examples/"]
ignore_missing_imports = true
strict = true