]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
Pin pytest-asyncio package in Psycopg 3.0.x maint branch
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Thu, 13 Jan 2022 18:49:59 +0000 (19:49 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Thu, 13 Jan 2022 20:26:21 +0000 (21:26 +0100)
We cannot upgrade to 0.17.0 because it requires a config entry that then
makes 0.16.x fail.

psycopg/setup.py
tests/constraints.txt

index 815038c43a2a02ebd646118a5af39059db2c4042..332fe888fb331e1433fb08f93834c40388869ab9 100644 (file)
@@ -40,7 +40,11 @@ extras_require = {
         "mypy >= 0.920, != 0.930, != 0.931",
         "pproxy >= 2.7",
         "pytest >= 6.2.5",
-        "pytest-asyncio >= 0.16",
+        # 0.16 is still needed to support Python 3.6.
+        # Only pinned in Psycopg 3.0.x as Psycopg 3.1.x is Py >= 3.7 only.
+        # - 0.17 requires asyncio_mode in config or it fails with a warning.
+        # - 0.16 fails if asyncio_mode is in the config.
+        "pytest-asyncio >= 0.16, < 0.17",
         "pytest-cov >= 3.0",
         "pytest-randomly >= 3.10",
         "tenacity >= 8.0",
index d8d22cbf9e934fc4f4fb346e3bcd988dd3787d6d..2c8b831ced2f040685a115a22d96813d9901eee9 100644 (file)
@@ -21,7 +21,6 @@ black == 21.12b0
 dnspython == 2.1.0
 flake8 == 4.0.0
 mypy == 0.920
-pytest-mypy == 0.8.0
 types-setuptools == 57.4.0
 wheel == 0.36.0