From 69d075f2d1962a31e8e66ba26bb737fd186f8877 Mon Sep 17 00:00:00 2001 From: golyalpha Date: Mon, 22 Apr 2019 15:21:47 +0200 Subject: [PATCH 1/2] Update detect --- bin/detect | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/detect b/bin/detect index 13ab74ce4..831724e2a 100755 --- a/bin/detect +++ b/bin/detect @@ -15,8 +15,8 @@ BUILD_DIR=$1 # Exit early if app is clearly not Python. -if [ -f "$BUILD_DIR/requirements.txt" ] || [ -f "$BUILD_DIR/setup.py" ] || [ -f "$BUILD_DIR/Pipfile" ] || [ -f "$BUILD_DIR/Pipfile.lock"] || [ -f "$BUILD_DIR/pyproject.py"] || [ -f "$BUILD_DIR/poetry.lock"]; then +if [ -f "$BUILD_DIR/requirements.txt" ] || [ -f "$BUILD_DIR/setup.py" ] || [ -f "$BUILD_DIR/Pipfile" ] || [ -f "$BUILD_DIR/Pipfile.lock" ] || [ -f "$BUILD_DIR/pyproject.toml"] || [ -f "$BUILD_DIR/poetry.lock" ]; then echo Python Project Detected... else exit 1 -fi \ No newline at end of file +fi From 997ccb4284a853d1f624718645f2e51d6ed73424 Mon Sep 17 00:00:00 2001 From: golyalpha Date: Mon, 22 Apr 2019 15:22:35 +0200 Subject: [PATCH 2/2] Update poetry-python-version --- bin/steps/poetry-python-version | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/steps/poetry-python-version b/bin/steps/poetry-python-version index 0c3d30307..3ffb162e7 100644 --- a/bin/steps/poetry-python-version +++ b/bin/steps/poetry-python-version @@ -27,7 +27,7 @@ if [[ -f $BUILD_DIR/pyproject.toml || -f $BUILD_DIR/poetry.lock ]]; then fi else PYTHON=$(sed -nr "/^\[metadata\]/ { :l /^python-versions[ ]*=/ { s/.*=[ ]*//; p; q;}; n; b l;}" "$BUILD_DIR/poetry.lock" | tr -d '"^') - if ! [ -z $PYTHON]; then + if ! [ -z $PYTHON ]; then if [[ "$PYTHON" == +([0-9]).+([0-9]).+([0-9]) ]]; then echo "python-$PYTHON" > "$BUILD_DIR/runtime.txt" elif [ $PYTHON = 2.7 ]; then