diff --git a/pyproject.toml b/pyproject.toml index 06d52bb..b8539c2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,9 +21,16 @@ classifiers = [ ] version = "0" dependencies = [ - "tenacity", - "sqlalchemy[asyncio]", - "asyncpg", + "tenacity>=8.4.1", + # 2.0.31 is the first release that tolerates the __static_attributes__ and __firstlineno__ + # attributes Python 3.13 added; below it SQLAlchemy's TypingOnly check fails at import. + "sqlalchemy[asyncio]>=2.0.18; python_version < '3.13'", + "sqlalchemy[asyncio]>=2.0.31; python_version >= '3.13'", + # asyncpg declares requires-python >=3.8 throughout but ships no cp313 wheel before 0.30 and no + # cp314 wheel before 0.31, so a resolver picks an sdist that cannot build rather than conflicting. + "asyncpg>=0.28; python_version < '3.13'", + "asyncpg>=0.30; python_version == '3.13'", + "asyncpg>=0.31; python_version >= '3.14'", ] [project.urls]