From 6013434393af1383eb7694c66630ec5fc7dc8834 Mon Sep 17 00:00:00 2001 From: jo Date: Fri, 1 Oct 2021 17:49:33 +0200 Subject: [PATCH] Install api with prod extra requires --- api/setup.py | 5 +++-- install | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/api/setup.py b/api/setup.py index 19cf4ed9f..16a8c7607 100644 --- a/api/setup.py +++ b/api/setup.py @@ -28,10 +28,11 @@ setup( "django-url-filter", "markdown", "model_bakery", - "psycopg2", # TODO: Move to prod requires ], extras_require={ - "prod": [], + "prod": [ + "psycopg2", + ], "dev": [ "psycopg2-binary", ], diff --git a/install b/install index 4795375e1..7a69bba60 100755 --- a/install +++ b/install @@ -1057,7 +1057,7 @@ systemInitInstall libretime-analyzer "$web_user" verbose "...Done" verbose "\n * Installing API..." -loudCmd "$pip_cmd install ${AIRTIMEROOT}/api" +loudCmd "$pip_cmd install ${AIRTIMEROOT}/api[prod]" systemInitInstall libretime-api "$web_user" mkdir -p /etc/airtime sed -e "s@WEB_USER@${web_user}@g" \