From 73d5f2a024f72c0b28b4ef10895bd8113ff7f932 Mon Sep 17 00:00:00 2001
From: Pierre SMEYERS <pierre.smeyers@gmail.com>
Date: Tue, 12 Oct 2021 16:33:35 +0000
Subject: [PATCH] fix: disable poetry usage (py-doc)

---
 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 dcdbdb9..78ca4e1 100644
--- a/templates/gitlab-ci-python.yml
+++ b/templates/gitlab-ci-python.yml
@@ -113,7 +113,7 @@ variables:
   }
 
   function install_doc_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