]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Increase minimum required greenlet version
authorChris Withers <chris@withers.org>
Tue, 25 Mar 2025 19:05:23 +0000 (15:05 -0400)
committerFederico Caselli <cfederico87@gmail.com>
Tue, 25 Mar 2025 19:11:53 +0000 (20:11 +0100)
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
tox.ini

index 9a9b5658c87343870b240627af32f24fd163b11e..f3704cab21bf6767caa8dab5684c479f01c733bc 100644 (file)
@@ -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 9fefea20970636ea86a1d4308ccbd33065f6b54e..db5245cca32343b3890b3d20cd7913a2ad5cf6ee 100644 (file)
--- 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=