From 2154c2c0404525ae0591833f8a7f00c12ff52f9e Mon Sep 17 00:00:00 2001 From: Andrew Hosgood Date: Wed, 14 Aug 2024 10:32:17 +0100 Subject: [PATCH] Update .platform.app.yaml to fix new Platform.sh changes --- .platform.app.yaml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/.platform.app.yaml b/.platform.app.yaml index 8673173a7..6a7a28c0a 100644 --- a/.platform.app.yaml +++ b/.platform.app.yaml @@ -9,6 +9,10 @@ name: app # to find the supported versions for the 'python' type. type: 'python:3.12' +dependencies: + python3: + poetry: '1.8.1' + variables: env: DJANGO_SETTINGS_MODULE: 'config.settings.platform' @@ -37,15 +41,6 @@ hooks: # Download the latest version of pip python3.12 -m pip install --upgrade pip - # Install and configure Poetry - # Set user to false to install Poetry globally - export PIP_USER=false - curl -sSL https://install.python-poetry.org | python3 - --version $POETRY_VERSION - # Update PATH to make Poetry available in this hook - export PATH="/app/.local/bin:$PATH" - # Set user to true to install dependencies only in the virtual environment - export PIP_USER=true - # Install dependencies poetry install --only main