Skip to content

Commit

Permalink
Upgrade psycopg to version 3 in the API (#3064)
Browse files Browse the repository at this point in the history
  • Loading branch information
krysal authored Sep 27, 2023
1 parent efbe123 commit 194d2cb
Show file tree
Hide file tree
Showing 4 changed files with 85 additions and 80 deletions.
3 changes: 1 addition & 2 deletions api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,9 @@ COPY --from=awf /usr/local/bin/audiowaveform /usr/local/bin

# - Install system packages needed for running Python dependencies
# - libexempi8: required for watermarking
# - libpq-dev: required by `psycopg2`
# - Create directory for dumping API logs
RUN apt-get update \
&& apt-get install -y curl libpq-dev libexempi8 postgresql-client \
&& apt-get install -y curl libexempi8 postgresql-client \
&& rm -rf /var/lib/apt/lists/* \
&& mkdir -p /var/log/openverse_api/openverse_api.log

Expand Down
2 changes: 1 addition & 1 deletion api/Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ future = "~=0.18"
gunicorn = "~=21.2"
limit = "~=0.2"
Pillow = "~=10.0.1"
psycopg2 = "~=2.9"
python-decouple = "~=3.8"
python-xmp-toolkit = "~=2.0"
sentry-sdk = "~=1.30"
django-split-settings = "*"
uvloop = "~=0.17"
psycopg = "~=3.1"

[requires]
python_version = "3.11"
Loading

0 comments on commit 194d2cb

Please sign in to comment.