From c20364bc7aec594542893509ac7e7bf4c0a81c81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Kone=C4=8Dn=C3=BD?= Date: Tue, 27 Sep 2022 10:27:16 +0200 Subject: [PATCH] [release-monitoring] Combine poetry and pip for build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The poetry install is creating an editable installation, which is not what we want. Let's instead use pip for installation and poetry to build the package and create requirements.txt. Signed-off-by: Michal Konečný --- .../release-monitoring/templates/buildconfig.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/roles/openshift-apps/release-monitoring/templates/buildconfig.yml b/roles/openshift-apps/release-monitoring/templates/buildconfig.yml index 7fca41c68e..d7952c9ace 100644 --- a/roles/openshift-apps/release-monitoring/templates/buildconfig.yml +++ b/roles/openshift-apps/release-monitoring/templates/buildconfig.yml @@ -55,8 +55,7 @@ items: pushd anitya && \ {% if env == 'staging' %} git checkout staging && \ - poetry config virtualenvs.create false && \ - poetry install && \ + poetry export -f requirements.txt | pip-3 install -r /dev/stdin && \ {% else %} git checkout production && \ python3 setup.py install && \ @@ -68,7 +67,10 @@ items: mkdir -p ../anitya/static/docs/ && \ cp -r _build/html/* ../anitya/static/docs/ && \ popd && \ -{% if env != 'staging' %} +{% if env == 'staging' %} + poetry build && \ + pip-3 install dist/*.whl && \ +{% else %} python3 setup.py install && \ pip-3 install . && \ {% endif %}