Bump psycopg to 3.1.8+ (#9815)

The earliest supported Django version 4.2 recommends using psycopg>=3.1.8

https://docs.djangoproject.com/en/4.2/ref/databases/#postgresql-notes
This commit is contained in:
Ülgen Sarıkavak 2025-11-03 12:23:56 +03:00 committed by GitHub
parent 1660c22f3a
commit 29e6241feb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -5,6 +5,6 @@ django-filter
django-guardian>=2.4.0,<2.5 django-guardian>=2.4.0,<2.5
inflection==0.5.1 inflection==0.5.1
markdown>=3.3.7 markdown>=3.3.7
psycopg2-binary>=2.9.5,<2.10 psycopg[binary]>=3.1.8
pygments~=2.17.0 pygments~=2.17.0
pyyaml>=5.3.1,<5.4 pyyaml>=5.3.1,<5.4

View File

@ -16,7 +16,7 @@ def unicode_http_header(value):
return value return value
# django.contrib.postgres requires psycopg2 # django.contrib.postgres requires psycopg
try: try:
from django.contrib.postgres import fields as postgres_fields from django.contrib.postgres import fields as postgres_fields
except ImportError: except ImportError:

View File

@ -315,7 +315,7 @@ if postgres_fields:
required_db_features = {'supports_json_field'} required_db_features = {'supports_json_field'}
@pytest.mark.skipif(not postgres_fields, reason='psycopg2 is not installed') @pytest.mark.skipif(not postgres_fields, reason='psycopg is not installed')
class TestNestedNonRelationalFieldWrite: class TestNestedNonRelationalFieldWrite:
""" """
Test that raise_errors_on_nested_writes does not raise `AssertionError` when the Test that raise_errors_on_nested_writes does not raise `AssertionError` when the