-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Django 4.2+ supports psycopg3 and will prefer it over psycopg2 if it is installed. Follow the same approach here to ensure that this package behaves in a manner consistent with Django itself.
- Loading branch information
Showing
5 changed files
with
27 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,22 @@ | ||
[tox] | ||
min_version = 4.0 | ||
env_list = | ||
py312-django{42,50} | ||
py311-django{41,42,50} | ||
py310-django{41,42,50} | ||
py311-django41-psycopg2 | ||
py310-django41-psycopg2 | ||
py312-django{42,50}-psycopg{2,3} | ||
py311-django{41,42,50}-psycopg{2,3} | ||
py310-django{41,42,50}-psycopg{2,3} | ||
|
||
[testenv] | ||
pass_env = | ||
DATABASE_URL | ||
deps = | ||
-r requirements/development.txt | ||
psycopg2-binary | ||
django41: django>=4.1,<4.2 | ||
django42: django>=4.2,<5.0 | ||
django50: django>=5.0,<5.1 | ||
psycopg2: psycopg2-binary | ||
psycopg3: psycopg[binary] | ||
|
||
commands = | ||
python -m pytest |