Python
Detection
Python applications are detected when the application contains a requirements.txt
or setup.py
file in the root of your project directory.
Runtime
Currently, supported versions of Python are python-3.11.2
, python-3.10.10
, python-3.9.16
, and python-3.8.16
.
To specify the Python version to use, add a runtime.txt
file in the root of your project directory with one of the versions mentioned above. For example, to use Python 3.8, your runtime.txt
file must contain all three version number components (major, minor, and patch):
runtime.txt
python-3.11.2
If no version is specified, python-3.11.2
will be used.