From 03c67056fa5b5a882492ce53c2c8de5aa33da43f Mon Sep 17 00:00:00 2001 From: Edoardo Pirovano Date: Wed, 31 Aug 2022 13:06:02 +0100 Subject: [PATCH] Pin `poetry` to 1.2 --- python-setup/install_tools.ps1 | 3 ++- python-setup/install_tools.sh | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/python-setup/install_tools.ps1 b/python-setup/install_tools.ps1 index ed954c5101..feafcbdd9c 100644 --- a/python-setup/install_tools.ps1 +++ b/python-setup/install_tools.ps1 @@ -9,5 +9,6 @@ py -2 -m pip install --user 'virtualenv<20.11' py -3 -m pip install --user 'virtualenv<20.11' # poetry 1.0.10 has error (https://github.com/python-poetry/poetry/issues/2711) -py -3 -m pip install --user poetry!=1.0.10 +# We aren't compatible with poetry 1.2 +py -3 -m pip install --user "poetry!=1.0.10,>=1.1,<1.2" py -3 -m pip install --user pipenv diff --git a/python-setup/install_tools.sh b/python-setup/install_tools.sh index f5014595fa..a814f40adb 100755 --- a/python-setup/install_tools.sh +++ b/python-setup/install_tools.sh @@ -25,7 +25,8 @@ python3 -m pip install --user 'virtualenv<20.11' # LGTM_PYTHON_SETUP_VERSION=The currently activated Python version 2.7.18 is not supported by the project (^3.5). Trying to find and use a compatible version. Using python3 (3.8.2) 3 # poetry 1.0.10 has error (https://github.com/python-poetry/poetry/issues/2711) -python3 -m pip install --user poetry!=1.0.10 +# We aren't compatible with poetry 1.2 +python3 -m pip install --user "poetry!=1.0.10,>=1.1,<1.2" python3 -m pip install --user pipenv if command -v python2 >/dev/null 2>&1; then