From 938e0fee9b834aca8b22034c75ffadefdfbaaf5f Mon Sep 17 00:00:00 2001 From: Chris Withers Date: Tue, 25 Mar 2025 15:05:23 -0400 Subject: [PATCH] Increase minimum required greenlet version Add a lower bound constraint on the greenlet version to 1. Closes: #12459 Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/12459 Pull-request-sha: 4bd856b9c164df984f05c094c977686470ed4244 Change-Id: I200861f1706bf261c2e586b96e8cc35dceb7670b --- pyproject.toml | 12 ++++++------ tox.ini | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 9a9b5658c8..f3704cab21 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -43,7 +43,7 @@ Changelog = "https://docs.sqlalchemy.org/latest/changelog/index.html" Discussions = "https://github.com/sqlalchemy/sqlalchemy/discussions" [project.optional-dependencies] -asyncio = ["greenlet!=0.4.17"] +asyncio = ["greenlet>=1"] mypy = [ "mypy >= 1.7", "types-greenlet >= 2" @@ -59,7 +59,7 @@ oracle-oracledb = ["oracledb>=1.0.1"] postgresql = ["psycopg2>=2.7"] postgresql-pg8000 = ["pg8000>=1.29.3"] postgresql-asyncpg = [ - "greenlet!=0.4.17", # same as ".[asyncio]" if this syntax were supported + "greenlet>=1", # same as ".[asyncio]" if this syntax were supported "asyncpg", ] postgresql-psycopg2binary = ["psycopg2-binary"] @@ -68,19 +68,19 @@ postgresql-psycopg = ["psycopg>=3.0.7,!=3.1.15"] postgresql-psycopgbinary = ["psycopg[binary]>=3.0.7,!=3.1.15"] pymysql = ["pymysql"] aiomysql = [ - "greenlet!=0.4.17", # same as ".[asyncio]" if this syntax were supported + "greenlet>=1", # same as ".[asyncio]" if this syntax were supported "aiomysql", ] aioodbc = [ - "greenlet!=0.4.17", # same as ".[asyncio]" if this syntax were supported + "greenlet>=1", # same as ".[asyncio]" if this syntax were supported "aioodbc", ] asyncmy = [ - "greenlet!=0.4.17", # same as ".[asyncio]" if this syntax were supported + "greenlet>=1", # same as ".[asyncio]" if this syntax were supported "asyncmy>=0.2.3,!=0.2.4,!=0.2.6", ] aiosqlite = [ - "greenlet!=0.4.17", # same as ".[asyncio]" if this syntax were supported + "greenlet>=1", # same as ".[asyncio]" if this syntax were supported "aiosqlite", ] sqlcipher = ["sqlcipher3_binary"] diff --git a/tox.ini b/tox.ini index 9fefea2097..db5245cca3 100644 --- a/tox.ini +++ b/tox.ini @@ -188,7 +188,7 @@ commands= [testenv:pep484] deps= - greenlet != 0.4.17 + greenlet >= 1 mypy >= 1.14.0 types-greenlet commands = @@ -204,7 +204,7 @@ extras = deps= pytest>=7.0.0rc1,<8.4 pytest-xdist - greenlet != 0.4.17 + greenlet >= 1 mypy >= 1.14 types-greenlet extras= -- 2.47.2