Skip to content

Commit b5942fc

Browse files
committed
Switch back to installing psycopg2 for test
You can use `pyscopg3` while having `psycopg2` installed, but not the other way around. Django will use `psycopg3` when available, otherwise `psycopg2`.
1 parent 9052440 commit b5942fc

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

setup.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ 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+
"psycopg2==2.9.10",
7879
"dj-database-url==0.5.0",
7980
"pytest==6.2.5",
8081
"pytest-benchmark==3.4.1",
@@ -87,13 +88,6 @@ def run(self):
8788
"coveralls==3.3.0",
8889
"snapshottest==0.6.0",
8990
],
90-
"local": [
91-
"Django~=4.2; python_version < '3.10'",
92-
"Django~=5.2; python_version >= '3.10'",
93-
"psycopg~=3.2; python_version >= '3.8'",
94-
"psycopg~=3.1; python_version >= '3.7'",
95-
"psycopg~=3.0; python_version <= '3.6'",
96-
],
9791
"analysis": [
9892
"black==22.3.0",
9993
"flake8==4.0.1",

0 commit comments

Comments
 (0)