From fbb3767ffc12e158fd982cd163fce0a8a33fd2d4 Mon Sep 17 00:00:00 2001 From: Artur Shiriev Date: Sun, 20 Sep 2026 16:54:14 +0300 Subject: [PATCH] fix(deps): give the three unbounded dependencies a lower bound tenacity, sqlalchemy and asyncpg were declared as bare names, so the range admitted every release ever published and sqlalchemy resolved to 0.1.0 from 2006, which does not build. Floors bisected against the suite. sqlalchemy and asyncpg are marked per interpreter: sqlalchemy below 2.0.31 fails its own TypingOnly check at import on 3.13+, and asyncpg ships no cp313 wheel before 0.30 or cp314 wheel before 0.31. Closes #52 --- pyproject.toml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) 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]