cardinalitypuzzles / cardboard

Dashboard for managing puzzles and tracking status during a puzzle hunt
MIT License
31 stars 21 forks source link

heroku: specify explicit Python 3.8.15 via runtime.txt #627

Closed akirabaruah closed 1 year ago

akirabaruah commented 1 year ago

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.

More context in https://github.com/moneymeets/python-poetry-buildpack/issues/8