@@ -45,10 +45,10 @@ spec:
45
45
46
46
echo "***** Installing dependencies *****"
47
47
if [ -e "poetry.lock" ]; then
48
- echo "Found poetry.lock file: using poetry "
49
- python -m pip install poetry poetry-plugin-export
50
- poetry export --with=dev -f requirements.txt --output requirements.txt
51
- python -m pip install --user -r requirements.txt
48
+ echo "Found poetry.lock file: using poetry ... "
49
+ python -m pip install --upgrade pip poetry
50
+ poetry config virtualenvs.create false
51
+ poetry install
52
52
elif [ -n "$(params.requirements-file)" ] && [ -e "$(params.requirements-file)" ]; then
53
53
python -m pip install --user -r "$(params.requirements-file)"
54
54
fi
@@ -114,10 +114,10 @@ spec:
114
114
115
115
echo "***** Installing dependencies *****"
116
116
if [ -e "poetry.lock" ]; then
117
- echo "Found poetry.lock file: using poetry "
118
- python -m pip install poetry poetry-plugin-export
119
- poetry export --with=dev -f requirements.txt --output requirements.txt
120
- python -m pip install --user -r requirements.txt
117
+ echo "Found poetry.lock file: using poetry ... "
118
+ python -m pip install --upgrade pip poetry
119
+ poetry config virtualenvs.create false
120
+ poetry install
121
121
elif -e "requirements.txt" ]; then
122
122
python -m pip install --user -r requirements.txt
123
123
fi
0 commit comments