Support major Python version syntax in runtime.txt
#322
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Historically the
runtime.txt
file has only supported specifying an exact Python version, in the formpython-3.X.Y
.This adds support for the
python-3.X
form too, which means the app will automatically receive new Python patch updates during subsequent builds (similar to what's already supported for the.python-version
file).This means the Python CNB's
runtime.txt
supported syntax now matches that supported by the classic Python buildpack (which gained support for the major version form as part of adding support for the.python-version
file in heroku/heroku-buildpack-python#1664).The
runtime.txt
file remains deprecated (a deprecation warning will be added shortly: #275), however, in the meantime this improves parity between the classic buildpack and CNB.GUS-W-17660224.