From bc0676ac51c2749f245b83cd10d2bff83fd28a0d Mon Sep 17 00:00:00 2001 From: "Hasko, Vladimir" Date: Wed, 9 Aug 2023 12:05:33 +0000 Subject: [PATCH] adding constraints reference Reviewed-by: gtema Co-authored-by: Hasko, Vladimir Co-committed-by: Hasko, Vladimir --- otc_metadata/templates/tox.ini.j2 | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/otc_metadata/templates/tox.ini.j2 b/otc_metadata/templates/tox.ini.j2 index e6ecf9d..bfea2ac 100644 --- a/otc_metadata/templates/tox.ini.j2 +++ b/otc_metadata/templates/tox.ini.j2 @@ -24,7 +24,9 @@ commands = {posargs} # This env is invoked in the periodic pipeline and is therefore responsible to # build all relevant docs at once. [testenv:docs] -deps = -r{toxinidir}/doc/requirements.txt +deps = + -r{toxinidir}/doc/requirements.txt + -c https://raw.githubusercontent.com/opentelekomcloud-docs-swiss/docs-constraints/main/constraints.txt allowlist_externals = mkdir cp @@ -40,7 +42,7 @@ commands = {%- endfor %} [testenv:docs-pdf] -deps = -r{toxinidir}/doc/requirements.txt +deps = {[testenv:docs]deps} allowlist_externals = rm mkdir @@ -59,7 +61,7 @@ commands = {% set loc = doc.rst_location | replace('/source', '') %} # HTML version [testenv:{{ doc.type }}] -deps = -r{toxinidir}/doc/requirements.txt +deps = {[testenv:docs]deps} allowlist_externals = cp mkdir @@ -78,7 +80,7 @@ commands = # Json version (for search) [testenv:json-{{ doc.type }}] -deps = -r{toxinidir}/doc/requirements.txt +deps = {[testenv:docs]deps} allowlist_externals = cp mkdir @@ -102,7 +104,7 @@ commands = {% if doc.pdf_name -%} # PDF version [testenv:{{ doc.type }}-pdf-docs] -deps = -r{toxinidir}/doc/requirements.txt +deps = {[testenv:docs]deps} allowlist_externals = rm mkdir