-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
455 lines (447 loc) · 11 KB
/
Copy pathpyproject.toml
File metadata and controls
455 lines (447 loc) · 11 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
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "cosysim"
# v1.61.0 [2026-06-13] — Public Release Prep: credential security audit (all
# secrets externalized to gitignored .env / examples), hardened .gitignore,
# and a complete professional README + docs pass. Built on v1.60 Living Systems.
version = "1.61.0"
description = "CosySim - AI Virtual Companion Simulation System with voice/video calls and interactive scenes"
readme = "README.md"
requires-python = ">=3.10"
authors = [
{name = "CosySim Team"}
]
license = {text = "MIT"}
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
# v1.57.3 [2026-05-15] — All version pins removed; uv resolves the latest
# Python 3.13-compatible release of each package. Previous pins were a
# `pip freeze` from a 3.10/3.11 env and many predated cp313 wheels.
# Kept in sync with requirements.txt (the install manifest).
dependencies = [
"conformer",
"diffusers",
"gdown",
"hydra-core",
"hyperpyyaml",
"inflect",
"librosa",
"lightning",
# matcha-tts removed [2026-05-14]: vendored at engine/third_party/Matcha-TTS
# (sys.path); pip package unused and unbuildable on Python 3.13.
"modelscope",
"numpy",
"omegaconf",
# onnx / onnxruntime / onnxruntime-gpu removed [2026-05-14]: CosyVoice/ONNX-era
# leftovers, only used by leftover Triton deploy scaffolding, not the app.
"openai-whisper",
"pyworld",
"silero-stress",
# tensorrt-llm is Linux-only, Windows not supported
# "tensorrt-llm",
"torch",
"torchaudio",
"torchvision",
# torchcodec removed [2026-05-15]: CosyVoice-era leftover, unused; native lib
# needs system FFmpeg DLLs + torch-version alignment, pure breakage.
"transformers",
"wetext",
"wget",
"x-transformers",
"absl-py",
"accelerate",
"aenum",
"aiofiles",
"aiohappyeyeballs",
"aiohttp",
"aiosignal",
"alembic",
"altair",
"annotated-types",
"antlr4-python3-runtime",
"anyascii",
"anyio",
"argon2-cffi",
"argon2-cffi-bindings",
"arrow",
"asttokens",
"async-lru",
"async-timeout",
"attrs",
"audioread",
"autopage",
"babel",
"backoff",
"backports-strenum",
"beautifulsoup4",
"blake3",
"bleach",
"blobfile",
"build",
"certifi",
"cffi",
"cfgv",
"charset-normalizer",
"click",
"click-option-group",
"cliff",
"cmaes",
"cmd2",
"colored",
"coloredlogs",
"colorlog",
"comm",
"contourpy",
"contractions",
"csvw",
"cuda-bindings",
"cuda-pathfinder",
"cuda-python",
"cycler",
"cython",
"datasets",
"debugpy",
"decorator",
"defusedxml",
"dill",
"distlib",
"distro",
"dlinfo",
"einops",
"einx",
"etcd3",
"evaluate",
"exceptiongroup",
"executing",
"fastapi",
"fastjsonschema",
"ffmpy",
"filelock",
"flashinfer-python",
"flatbuffers",
"fonttools",
"fqdn",
"frozendict",
"frozenlist",
"fsspec",
# gradio / gradio-client removed [2026-05-14]: CosyVoice-demo leftover, unused
# (UI is vanilla JS + Flask/Socket.IO); also pinned numpy<2.
"greenlet",
"grpcio",
"h11",
"h5py",
"hf-xet",
"httpcore",
"httpx",
"huggingface-hub",
"humanfriendly",
"hydra-colorlog",
"hydra-optuna-sweeper",
"identify",
"idna",
"importlib-metadata",
"importlib-resources",
"iniconfig",
"ipykernel",
"ipython",
"ipywidgets",
"isodate",
"isoduration",
"jedi",
"jinja2",
"jiter",
"joblib",
"json5",
"jsonpointer",
"jsonschema",
"jsonschema-specifications",
"jupyter-client",
"jupyter-core",
"jupyter-events",
"jupyter-lsp",
"jupyter-server",
"jupyter-server-terminals",
"jupyterlab",
"jupyterlab-pygments",
"jupyterlab-server",
"jupyterlab-widgets",
"kaldifst",
"kiwisolver",
"language-tags",
"lark",
"lazy-loader",
"lightning-utilities",
"llguidance",
"llvmlite",
"loguru",
"lxml",
"mako",
"markdown",
"markdown-it-py",
"markupsafe",
"matplotlib",
"matplotlib-inline",
"mdurl",
"meson",
"mistune",
# ml-dtypes removed [2026-05-14]: CosyVoice/ONNX-era leftover (onnx was its
# only consumer); not imported anywhere in the project.
"more-itertools",
"mpi4py",
"mpmath",
"msgpack",
"multidict",
"multiprocess",
"narwhals",
"nbclient",
"nbconvert",
"nbformat",
"nest-asyncio",
"networkx",
"ninja",
"nodeenv",
"notebook",
"notebook-shim",
"numba",
"nvidia-cublas-cu12",
"nvidia-cuda-cupti-cu12",
"nvidia-cuda-nvrtc-cu12",
"nvidia-cuda-runtime-cu12",
"nvidia-cudnn-cu12",
"nvidia-cufft-cu12",
# nvidia-cufile-cu12 is not available for Windows
# "nvidia-cufile-cu12",
"nvidia-curand-cu12",
"nvidia-cusolver-cu12",
"nvidia-cusparse-cu12",
"nvidia-cusparselt-cu12",
"nvidia-ml-py",
"nvidia-modelopt",
"nvidia-modelopt-core",
# nvidia-nccl-cu12 is Linux-only (multi-GPU communication)
# "nvidia-nccl-cu12",
"nvidia-nvjitlink-cu12",
"nvidia-nvtx-cu12",
"nvtx",
# onnx-graphsurgeon removed [2026-05-14]: CosyVoice/ONNX-era leftover.
"openai",
"opencv-python-headless",
"optimum",
"optuna",
"ordered-set",
"orjson",
"overrides",
"packaging",
"pandas",
"pandocfilters",
"parso",
"peft",
"pexpect",
"phonemizer",
"pillow",
"platformdirs",
"pluggy",
"polygraphy",
"pooch",
"pre-commit",
"prettytable",
"prometheus-client",
"prompt-toolkit",
"propcache",
"protobuf",
"psutil",
"ptyprocess",
"pulp",
"pure-eval",
"pyahocorasick",
"pyarrow",
"pycparser",
"pycryptodomex",
"pydantic",
"pydantic-core",
"pydantic-settings",
"pydub",
"pygments",
"pynvml",
"pyparsing",
"pyperclip",
"pyproject-hooks",
"pysocks",
"pytest",
"python-dateutil",
"python-dotenv",
"python-json-logger",
"python-multipart",
"pytorch-lightning",
"pytz",
"pyyaml",
"pyzmq",
"rdflib",
"referencing",
"regex",
"requests",
"rfc3339-validator",
"rfc3986",
"rfc3986-validator",
"rfc3987-syntax",
"rich",
"rich-argparse",
"rootutils",
"rpds-py",
"ruamel-yaml",
"ruamel-yaml-clib",
"safetensors",
"scikit-learn",
"scipy",
"seaborn",
"segments",
"semantic-version",
"send2trash",
"sentencepiece",
"setuptools",
"six",
"sniffio",
"soundfile",
"soupsieve",
"soxr",
"sqlalchemy",
"stack-data",
"starlette",
"stevedore",
"strenum",
"sympy",
"tenacity",
"tensorboard",
"tensorboard-data-server",
"tensorrt",
"tensorrt-cu12",
"tensorrt-cu12-bindings",
"tensorrt-cu12-libs",
"termcolor",
"terminado",
"textsearch",
"threadpoolctl",
"tiktoken",
"tinycss2",
"tokenizers",
"tomli",
"torchmetrics",
"torchprofile",
"tornado",
"tqdm",
"traitlets",
# triton is Linux-only (GPU kernel compilation)
# "triton",
"typeguard",
"typing-extensions",
"typing-inspection",
"tzdata",
"unidecode",
"uri-template",
"uritemplate",
"urllib3",
"uvicorn",
"virtualenv",
"wcwidth",
"webcolors",
"webencodings",
"websocket-client",
"websockets",
"werkzeug",
"wheel",
"widgetsnbextension",
"xgrammar",
"xxhash",
"yarl",
"zipp",
# Agent Framework
"fastmcp",
"streamlit",
# Web Hub
"flask",
"flask-cors",
"flask-socketio",
# Autonomous Messaging
"apscheduler",
# Database
"chromadb",
"langchain",
# LMStudio SDK
"lmstudio",
]
[project.optional-dependencies]
dev = [
"pytest>=7.0",
"pytest-cov>=4.0",
"black>=23.0",
"ruff>=0.1.0",
"mypy>=1.0",
]
# ──── uv configuration ────────────────────────────────────────────
# v1.57.3 [2026-05-14] — Pin uv to Python 3.13 (see .python-version) and make
# `uv pip install -r requirements.txt` work out-of-the-box.
# - index-strategy: requirements.txt declares two --extra-index-url entries
# (PyTorch CUDA + ONNX). uv's default "first-index" strategy only looks at
# the first index carrying a package; "unsafe-best-match" matches pip's
# behaviour of picking the best version across all configured indexes.
# The matcha-tts (unbuildable on 3.13) and ml-dtypes 0.5.4 (numpy 2.x ABI)
# conflicts were fixed at the source — see the dependency list above — so no
# build constraints or --no-deps flag are needed.
[tool.uv]
index-strategy = "unsafe-best-match"
[tool.setuptools]
packages = ["engine", "content"]
include-package-data = true
[tool.setuptools.package-data]
"*" = ["*.yaml", "*.yml", "*.json", "*.txt"]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = "test_*.py"
python_classes = "Test*"
python_functions = "test_*"
# v1.49.2 [2026-03-22] — Reduced from 13 to 4 ignored files. Fixed bugs that
# prevented 9 test files from running (missing logger, f-string syntax,
# gallery_list bug, async decorator, stale @mcp.resource). All 9 files are
# fully mocked and do NOT require live services.
#
# Remaining ignored files (truly need live services or are integration-only):
# test_agent_loop.py — requires live LMStudio (CLAUDE.md says ignore)
# live_wire_test.py — requires live services (CLAUDE.md says ignore)
# test_nexus_phase2.py — workflow/memory tests hang or fail due to code drift
# test_integration.py — full integration (all services running)
addopts = "-v --strict-markers --basetemp=tests/tmp -m \"not slow and not integration\" --ignore=tests/test_agent_loop.py --ignore=tests/live_wire_test.py --ignore=tests/test_nexus_phase2.py --ignore=tests/test_integration.py"
# Run parallel (6x faster): pytest -n auto
# Run full suite: pytest -m "" --co (removes -m filter)
norecursedirs = ["tests/tmp", ".git", "__pycache__", "*.egg-info", "node_modules", "unsloth_compiled_cache", "backups"]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"integration: marks tests as integration tests",
"unit: Unit tests (fast, no external deps)",
"scene: Scene-specific tests",
"browser: Tests requiring browser/CDP",
"nexus: Tests requiring Nexus server",
"smoke: Quick smoke tests for CI",
]
[tool.coverage.run]
source = ["cosysim"]
omit = [
"*/tests/*",
"*/third_party/*",
"*/__pycache__/*",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]