Skip to content

Commit

Permalink
Switch from psycopg2 to psycopg3
Browse files Browse the repository at this point in the history
  • Loading branch information
alastair committed Feb 21, 2025
1 parent a76f9aa commit 49ff187
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 30 deletions.
2 changes: 1 addition & 1 deletion accounts/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
from django.urls import reverse
from django.utils.encoding import smart_str
from django.utils import timezone
from psycopg2.errors import ForeignKeyViolation
from psycopg.errors import ForeignKeyViolation
from urllib.parse import quote

import tickets.models
Expand Down
3 changes: 1 addition & 2 deletions requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ numpy==1.24.3
oauthlib
openpyxl==3.1.0 # for reading .xlsx files (but not .xls)
Pillow==9.5.0
pip-tools==7.1.0
psycopg2-binary==2.9.6
psycopg~=3.2.4
PyJWT==2.6.0
pyparsing==2.4.7
pysndfile==1.4.4
Expand Down
35 changes: 8 additions & 27 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
#
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile
#
# This file was autogenerated by uv via the following command:
# uv pip compile requirements.in -o requirements.txt
akismet==1.0.1
# via -r requirements.in
alabaster==0.7.13
Expand Down Expand Up @@ -43,8 +39,6 @@ botocore==1.29.165
# via
# boto3
# s3transfer
build==1.0.3
# via pip-tools
cachecontrol==0.13.1
# via mapbox
cachetools==5.3.2
Expand All @@ -67,7 +61,6 @@ click==8.1.7
# click-didyoumean
# click-plugins
# click-repl
# pip-tools
click-didyoumean==0.3.0
# via celery
click-plugins==1.1.1
Expand Down Expand Up @@ -217,7 +210,6 @@ openpyxl==3.1.0
# via -r requirements.in
packaging==23.2
# via
# build
# gunicorn
# pytest
paramiko==3.4.0
Expand All @@ -232,8 +224,6 @@ pickleshare==0.7.5
# via ipython
pillow==9.5.0
# via -r requirements.in
pip-tools==7.1.0
# via -r requirements.in
pluggy==1.5.0
# via pytest
ply==3.11
Expand All @@ -244,7 +234,7 @@ prompt-toolkit==3.0.43
# via
# click-repl
# ipython
psycopg2-binary==2.9.6
psycopg==3.2.4
# via -r requirements.in
ptyprocess==0.7.0
# via pexpect
Expand All @@ -264,8 +254,6 @@ pynacl==1.5.0
# via paramiko
pyparsing==2.4.7
# via -r requirements.in
pyproject-hooks==1.0.0
# via build
pysndfile==1.4.4
# via -r requirements.in
pysolr==3.10.0b1
Expand Down Expand Up @@ -311,8 +299,10 @@ scipy==1.12.0
# via
# -r requirements.in
# scikit-learn
sentry-sdk[django]==2.21.0
sentry-sdk==2.21.0
# via -r requirements.in
setuptools==75.8.0
# via sphinx
sgmllib3k==1.0.0
# via feedparser
six==1.16.0
Expand Down Expand Up @@ -346,11 +336,7 @@ threadpoolctl==3.3.0
toml==0.10.2
# via autopep8
tomli==2.0.1
# via
# build
# pip-tools
# pyproject-hooks
# pytest
# via pytest
traitlets==5.14.0
# via
# ipython
Expand All @@ -359,6 +345,7 @@ typing-extensions==4.9.0
# via
# asgiref
# dj-database-url
# psycopg
tzdata==2023.4
# via celery
uritemplate==4.1.1
Expand All @@ -377,15 +364,9 @@ wcwidth==0.2.12
# via prompt-toolkit
webencodings==0.5.1
# via bleach
wheel==0.42.0
# via pip-tools
wrapt==1.16.0
# via deprecated
xlrd==2.0.1
# via -r requirements.in
zenpy==1.1.3
# via -r requirements.in

# The following packages are considered to be unsafe in a requirements file:
# pip
# setuptools

0 comments on commit 49ff187

Please sign in to comment.