You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(evaluators): use SQLGlot native extra without direct sqlglotc pin (#243)
## Summary
- Upgrade the builtin SQL evaluator dependency to
`sqlglot[c]>=30.11.0,<30.12.0`.
- Remove the direct `sqlglotc` dependency so SQLGlot owns the matching
native runtime package.
- Update CrewAI examples to use the same dependency contract.
- Add a regression test for SQLGlot public imports and SQL evaluator
construction.
- Adapt SQL evaluator typing to SQLGlot 30 stubs without changing
runtime behavior.
## Context
`sqlglotc` contributes native modules under the public `sqlglot` package
namespace. Keeping both `sqlglot[c]` and a separate direct `sqlglotc`
pin works in normal pip-style installs, but it is fragile for build
systems that model wheels separately. This keeps the public dependency
contract on `sqlglot[c]` and lets SQLGlot select the matching native
package.
This keeps Agent Control installable as a generic OSS package while
preserving the low-latency SQL evaluator path for environments that
install SQLGlot with native extensions.
## Validation
- `UV_NO_CONFIG=1 UV_DEFAULT_INDEX=https://pypi.org/simple make sync`
- `UV_NO_CONFIG=1 UV_DEFAULT_INDEX=https://pypi.org/simple uv run
--package agent-control-evaluators pytest
evaluators/builtin/tests/sql/test_sqlglot_runtime.py -q`
- `UV_NO_CONFIG=1 UV_DEFAULT_INDEX=https://pypi.org/simple uv run
--package agent-control-evaluators pytest evaluators/builtin/tests/sql
-q`
- `UV_NO_CONFIG=1 UV_DEFAULT_INDEX=https://pypi.org/simple make
evaluators-test`
- `UV_NO_CONFIG=1 UV_DEFAULT_INDEX=https://pypi.org/simple make
evaluators-lint`
- `UV_NO_CONFIG=1 UV_DEFAULT_INDEX=https://pypi.org/simple make
evaluators-typecheck`
- `git diff --check`
0 commit comments