mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-11-20 12:17:41 +08:00
Support Python 3.14 (`requires-python` stays `>=3.11`). Installing on 3.14 needs a newer `chromadb`, so tighten it to `>=1.5.3`: the first release to drop the Pydantic v1 shim for 3.14. Its 1.5.x wheels are `cp39-abi3`, and it leaves `onnxruntime` to the resolver, which picks a `cp314` wheel on 3.14. Pinning onnxruntime would need re-pinning per chromadb release. Also fixed, because 3.14 exposed them: - E2E used `with sqlite3.connect(...)`, a transaction context manager that never closes; the unclosed-database ResourceWarning landed in the next test's setup and pytest.ini makes it fatal. Switched to `contextlib.closing`. - 3.14 parks `asyncio.shield`'s `_log_on_exception` on the cancelled inner task and logs the raw repr, bypassing the SDK's `_safe_error` redaction and echoing the workspace API key. Detach it after the cancel. - Two tests asserted scheduling order that 3.14 changed (deadline cancellation, heartbeat lane order).