]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
chore: avoid anyio >= 4 for the moment
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 1 Sep 2023 10:46:01 +0000 (11:46 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 1 Sep 2023 22:16:26 +0000 (23:16 +0100)
The 'policy' parameter is not supported anymore, and finding the right
workaround is tricky, especially because it's only needed for Windows,
and because anyio 4 doesn't support Python 3.7, so we would need to
support both the versions.

When we will drop Python 3.7 support it will be easier move to anyio >= 4.

psycopg/setup.cfg

index 5042c87e7ae376b2cdf56df60a0d8b06015abef7..f62ae801f48e07d17660ed4a56d3ece6fb4b9878 100644 (file)
@@ -66,7 +66,8 @@ binary =
 pool =
     psycopg-pool
 test =
-    anyio >= 3.6.2
+    # TODO: move to anyio >= 4.0 once support for Python 3.7 is dropped
+    anyio >= 3.6.2, < 4.0
     mypy >= 1.4.1
     pproxy >= 2.7
     pytest >= 6.2.5