The .python-version file in the app’s root directory declares the Python version number is 3.12.7
This Python version should be the major version only, for example: 3.12
Heroku strongly recommend that you specify only the major Python version (e.g. 3.12) instead of pinning to an exact patch version, so that your app automatically receives Python security updates each time it builds.
The .python-version file in the app’s root directory declares the Python version number is 3.12.7
This Python version should be the major version only, for example: 3.12
Heroku strongly recommend that you specify only the major Python version (e.g. 3.12) instead of pinning to an exact patch version, so that your app automatically receives Python security updates each time it builds.