The Heroku Poetry buildpack we're using requires an explicit Python version config in pyproject.toml in order to generate runtime.txt for Heroku. Rather than tweak our pyproject.toml, we can set an explicit Python version supported by Heroku and set an env var (DISABLE_POETRY_CREATE_RUNTIME_FILE=1) that forces the buildpack to skip runtime.txt generation and use the one we provide.
The Heroku Poetry buildpack we're using requires an explicit Python version config in
pyproject.toml
in order to generateruntime.txt
for Heroku. Rather than tweak ourpyproject.toml
, we can set an explicit Python version supported by Heroku and set an env var (DISABLE_POETRY_CREATE_RUNTIME_FILE=1
) that forces the buildpack to skipruntime.txt
generation and use the one we provide.More context in https://github.com/moneymeets/python-poetry-buildpack/issues/8