Skip to content

Commit b0abc5c

Browse files
committed
Pick correct psycopg 3.x version based on Python version
1 parent ec54258 commit b0abc5c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,9 @@ def run(self):
7575
':python_version <= "3.6"': ["dataclasses"],
7676
"docs": ["Sphinx==2.2.0", "sphinx-rtd-theme==0.4.3", "docutils<0.18"],
7777
"test": [
78-
"psycopg~=3.2",
78+
"psycopg~=3.2; python_version >= '3.8'",
79+
"psycopg~=3.1; python_version >= '3.7'",
80+
"psycopg~=3.0; python_version <= '3.6'",
7981
"dj-database-url==0.5.0",
8082
"pytest==6.2.5",
8183
"pytest-benchmark==3.4.1",

0 commit comments

Comments
 (0)