François-Michel L'Heureux
11/08/2021, 3:32 PMServerless: Generating requirements.txt from pyproject.toml...
Error ---------------------------------------------------
Error: poetry not found! Install it according to the poetry docs.
I am using serverless 2.60.3 and it works fine locally.
Do I need to have an extra configuration for seed to work with poetry?Frank
seed.yml
to the root of the repo with the following content:
before_compile:
- curl -sSL <https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py> | python -
Frank
François-Michel L'Heureux
11/08/2021, 4:19 PMFrançois-Michel L'Heureux
11/08/2021, 5:17 PM- curl -sSL <https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py> | python -
- export PATH=$HOME/.poetry/bin:$PATH
- . $HOME/.poetry/env
Both in before_compile
and in before_build
I see the output of the commands. The install seems to work. But at build time, it can’t find it.François-Michel L'Heureux
11/08/2021, 5:18 PMpoetry --version
) after the install…François-Michel L'Heureux
11/08/2021, 5:27 PMpip install poetry==1.1.11
in the before_compile
section worked. 🎉
Leaving it here for future reference. 🙂