-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathpyproject.toml
More file actions
235 lines (218 loc) · 6.92 KB
/
Copy pathpyproject.toml
File metadata and controls
235 lines (218 loc) · 6.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
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
[build-system]
requires = ["setuptools>=75", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "aura-zenith"
version = "2026.4.20"
requires-python = ">=3.12"
dependencies = [
"fastapi>=0.136.3",
"starlette>=1.3.1",
"uvicorn[standard]>=0.34.0",
"mlx==0.32.0", # Native allocator/lifetime fixes
"mlx-lm==0.31.3", # Resident 32B runtime contract
"mlx-lm-lora==2.1.0", # DPO/ORPO/GRPO trainer bridge for verifier rewards
"structlog>=25.1.0",
"pybreaker>=1.1.0",
"faiss-cpu>=1.10.0", # unified memory friendly
"httpx>=0.28.0",
"httpx2>=2.4.0",
"requests>=2.33.0",
"aiohttp>=3.14.1",
"websocket-client>=1.9.0",
"paho-mqtt>=2.1.0",
"asyncua>=2.0.1",
"python-multipart>=0.0.31",
"cryptography>=48.0.1",
"Pygments>=2.20.0",
"google-genai>=1.0.0",
"idna>=3.15",
"urllib3>=2.7.0",
"aiosqlite>=0.20.0",
"prometheus-client>=0.21.0",
"psutil>=6.1.1",
"numpy>=1.26,<3.0",
"scipy>=1.13",
"pydantic>=2.10.0",
"pydantic-settings>=2.7.0",
"pyobjc-framework-Cocoa>=11.0",
"pyobjc-framework-ApplicationServices>=11.0; sys_platform == 'darwin'",
"pyobjc-framework-ScriptingBridge>=11.0; sys_platform == 'darwin'",
"py2app>=0.28.0", # macOS app bundle
"tenacity>=8.5.0",
"sqlalchemy>=2.0.35",
"playwright>=1.42.0",
"playwright-stealth>=2.0.3",
"piper-tts==1.4.2",
"pyttsx3>=2.90",
"tiktoken>=0.12.0",
]
[project.scripts]
aura = "aura_main:main"
[tool.setuptools]
include-package-data = false
py-modules = ["aura_main", "aura_cleanup", "main_daemon"]
[tool.setuptools.packages.find]
where = ["."]
namespaces = true
include = [
"aura_bench*",
"autonomy_engine*",
"benchmarks*",
"cloud*",
"core*",
"environments*",
"evals*",
"executors*",
"infrastructure*",
"integration*",
"interface*",
"llm*",
"optimizer*",
"proof_kernel*",
"research*",
"security*",
"senses*",
"skills*",
"slo*",
"storage*",
"tools*",
"training*",
]
exclude = [
"*.tests*",
"*.test*",
"aura_bench.property_tests*",
"aura_bench.results*",
"interface.static*",
"training.adapters.aura-personality*",
"training.raw_data*",
"training.vectors*",
]
[tool.setuptools.package-data]
core = ["*.json", "*.txt", "*/DEPS", "*/*.json", "*/*.txt"]
interface = ["static/*", "static/**/*", "static/**/**/*"]
[tool.setuptools.exclude-package-data]
interface = ["static/shell/tests/*.cjs"]
[project.optional-dependencies]
# Coverage + mutation tooling for the quality gates (make coverage,
# make coverage-check, make mutation). Not required to run Aura.
quality = [
"coverage[toml]>=7.6.0",
"mutmut>=3.0.0",
]
voice-xtts = [
"coqui-tts[codec]==0.27.5",
"torchaudio==2.11.0",
]
# Distributed/server deployments only. The desktop/consumer build runs tasks
# in-process (no broker) — see core/tasks.py and RedisConfig in core/config.py.
# Enable with: pip install 'aura-zenith[distributed]' + AURA_REDIS_ENABLED=1
distributed = [
"celery>=5.4.0",
"redis>=5.1.0",
]
physics = [
"mujoco==3.10.0",
]
dev = [
"pytest>=8.3.0",
"pytest-asyncio>=0.24.0",
"pytest-mock>=3.14.0",
"pytest-randomly>=3.15.0,<4",
"pytest-xdist>=3.6.0,<4",
"pre-commit>=3.8.0",
"ruff>=0.5.0",
"mypy>=1.11.2",
"mujoco==3.10.0",
]
[dependency-groups]
dev = [
"pytest>=8.3.0",
"pytest-asyncio>=0.24.0",
"pytest-mock>=3.14.0",
"pytest-randomly>=3.15.0,<4",
"pytest-xdist>=3.6.0,<4",
"pre-commit>=3.8.0",
"ruff>=0.5.0",
"mypy>=1.11.2",
"mujoco==3.10.0",
]
[tool.ruff]
line-length = 100
target-version = "py312"
[tool.ruff.lint]
select = ["E", "F", "B", "I", "N", "UP", "ASYNC"]
ignore = ["E501"] # Line length let ruff-format handle
[tool.mypy]
python_version = "3.12"
strict = true
ignore_missing_imports = true
disallow_untyped_defs = true
warn_unused_ignores = true
[tool.maturin]
bindings = "pyo3"
manifest-path = "rust_extensions/aura_m1_ext/Cargo.toml"
features = ["universal2"] # M1 Pro native + Rosetta fallback
[tool.bandit]
exclude_dirs = ["tests", "scripts", "research", "archive", ".venv"]
skips = ["B101", "B311"] # B101=assert, B311=random (used intentionally for non-crypto)
[tool.pytest.ini_options]
addopts = ["--import-mode=importlib"]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
pythonpath = [".", "tests"]
testpaths = ["tests", "proof_kernel/tests"]
filterwarnings = [
"ignore:builtin type SwigPyPacked has no __module__ attribute:DeprecationWarning",
"ignore:builtin type SwigPyObject has no __module__ attribute:DeprecationWarning",
"ignore:builtin type swigvarlink has no __module__ attribute:DeprecationWarning",
]
markers = [
"asyncio: marks async tests that require pytest-asyncio when executed",
"anyio: marks async tests that can run under anyio-compatible async backends",
"live: marks tests that require live Aura runtime/model/hardware access",
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"integration: marks full-pipeline integration tests",
"stress: marks load/stress tests",
"online: test requires live internet access (skip with '-m \"not online\"')",
"hardware: marks tests that require local hardware, OS, or device access",
"external: marks tests that call external services or APIs",
"property: marks invariant/property tests",
"unit: marks fast dependency-free unit tests",
"desktop: marks tests requiring GUI/desktop stack (pywebview, screen access)",
"model: marks tests requiring local model weights or inference runtimes",
"resident_model: marks destructive gates that load Aura's resident model weights",
"network: marks tests requiring network access",
"macos: marks tests requiring macOS-specific facilities (AppleScript, Metal)",
"longrun: marks soak/longevity tests measured in hours",
"host_observation: test intentionally reads current host resource state",
"host_leak_observation: test observes only current-test child, port, and file leaks; never policy evidence",
"mutates_global_state: test deliberately changes process-global state; exempt from the contamination guard",
]
[tool.coverage.run]
# Branch coverage, not just line. A 4,465-line function with 632 branches can
# show high line coverage while leaving most combinations unexplored — which
# is exactly the gap an external review named for this repo.
branch = true
source = ["core", "interface", "proof_kernel"]
parallel = true
concurrency = ["thread", "multiprocessing"]
omit = [
"*/__pycache__/*",
"*/.venv/*",
"*/tests/*",
"*/node_modules/*",
]
[tool.coverage.report]
show_missing = true
skip_covered = true
precision = 2
exclude_also = [
"if TYPE_CHECKING:",
"raise NotImplementedError",
"@(abc\\.)?abstractmethod",
"if __name__ == .__main__.:",
]
[tool.coverage.paths]
source = ["core", "*/core"]