diff --git a/.github/renovate.json5 b/.github/renovate.json5 index d1c415c..3851384 100644 --- a/.github/renovate.json5 +++ b/.github/renovate.json5 @@ -66,6 +66,15 @@ "minor", "patch" ], - } + }, + { + "description": "Disable SQLAlchemy updates for Python <= 3.10", + "matchPackageNames": [ + "SQLAlchemy", + "sqlalchemy" + ], + "matchCurrentValue": "/2\\.0\\./", + "enabled": false, + }, ], } diff --git a/pyproject.toml b/pyproject.toml index 2b9f857..2a2324b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,7 +13,8 @@ dependencies = [ "cloud-sql-python-connector[asyncpg] >= 1.10.0, <2.0.0", "llama-index-core>=0.12.0, <1.0.0", "pgvector>=0.2.5, <1.0.0", - "SQLAlchemy[asyncio]>=2.0.25, <3.0.0" + "SQLAlchemy[asyncio]>=2.0.25, <2.1.0; python_version < '3.11'", + "SQLAlchemy[asyncio]>=2.1.0, <3.0.0; python_version >= '3.11'" ] classifiers = [ diff --git a/requirements.txt b/requirements.txt index 69c6d71..b8b23f0 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,5 @@ cloud-sql-python-connector[asyncpg]==1.22.0 llama-index-core==0.14.24 pgvector==0.5.0 -SQLAlchemy[asyncio]==2.0.52 +SQLAlchemy[asyncio]==2.0.52; python_version < '3.11' +SQLAlchemy[asyncio]==2.1.4; python_version >= '3.11'