From 17d57cb9626de30be281c147486745df78f78545 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?C=C3=A9dric=20OLIVIER?= <cedric3.olivier@orange.com>
Date: Mon, 4 Oct 2021 16:57:43 +0200
Subject: [PATCH] fix: disable poetry usage
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Cédric OLIVIER <cedric3.olivier@orange.com>
---
 templates/gitlab-ci-python.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/templates/gitlab-ci-python.yml b/templates/gitlab-ci-python.yml
index 265b8d1..b3568f3 100644
--- a/templates/gitlab-ci-python.yml
+++ b/templates/gitlab-ci-python.yml
@@ -90,7 +90,7 @@ variables:
   }
 
   function install_requirements() {
-    if  [[ -f "pyproject.toml" ]]; then
+    if  [[ -f "pyproject.toml" ]] && [[ "${PYTHON_POETRY_DISABLED}" != "true" ]]; then
       if  [[ ! -f "poetry.lock" ]]; then 
         log_error "Poetry detected but \\e[33;1mpoetry.lock\\e[0m file not found: you shall commit it with your project files"
         exit 1 
-- 
GitLab