Skip to content
Snippets Groups Projects
Commit 95056049 authored by S.Thiriet's avatar S.Thiriet Committed by Pierre Smeyers
Browse files

fix: Poetry Build system test

parent be7fd568
No related branches found
No related tags found
No related merge requests found
......@@ -630,7 +630,7 @@ variables:
}
function maybe_install_poetry() {
if [[ "$PYTHON_BUILD_SYSTEM" =~ ^poetry.* ]] && ! command -v poetry > /dev/null
if [[ "$PYTHON_BUILD_SYSTEM" =~ ^poetry ]] && ! command -v poetry > /dev/null
then
# shellcheck disable=SC2086
pip install ${PIP_OPTS} "$PYTHON_BUILD_SYSTEM"
......@@ -684,7 +684,7 @@ variables:
}
function _run() {
if [[ "$PYTHON_BUILD_SYSTEM" == poetry* ]]
if [[ "$PYTHON_BUILD_SYSTEM" =~ ^poetry ]]
then
maybe_install_poetry
poetry run "$@"
......@@ -703,7 +703,7 @@ variables:
}
function py_package() {
if [[ "$PYTHON_BUILD_SYSTEM" == poetry* ]]
if [[ "$PYTHON_BUILD_SYSTEM" =~ ^poetry ]]
then
maybe_install_poetry
poetry build
......@@ -754,7 +754,7 @@ variables:
fi
# 2: bump-my-version (+ Git commit & tag)
if [[ "$PYTHON_BUILD_SYSTEM" == poetry* ]]
if [[ "$PYTHON_BUILD_SYSTEM" =~ ^poetry ]]
then
maybe_install_poetry
if [[ -z "$py_next_version" ]]
......@@ -812,7 +812,7 @@ variables:
}
function py_publish() {
if [[ "$PYTHON_BUILD_SYSTEM" == poetry* ]]
if [[ "$PYTHON_BUILD_SYSTEM" =~ ^poetry ]]
then
maybe_install_poetry
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment