-
Notifications
You must be signed in to change notification settings - Fork 3
Remove support for runtime.txt
#352
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The Heroku-proprietary `runtime.txt` file was previously deprecated in both the classic buildpack and CNB, in favour of the more widely supported `.python-version` file: https://devcenter.heroku.com/changelog-items/3005 https://devcenter.heroku.com/changelog-items/3141 We will be keeping support for `runtime.txt` in the classic Python buildpack for a while longer. However, since the CNB is new (and not used by any/many Heroku apps yet since it only GAed this week), we're dropping support for `runtime.txt` here sooner, to encourage migration. (Particularly since uv support will require apps to be using `.python-version`) Closes #275. GUS-W-16878263.
colincasey
approved these changes
Apr 17, 2025
heroku-linguist bot
added a commit
that referenced
this pull request
May 2, 2025
## heroku/python ### Removed - Removed support for the deprecated `runtime.txt` file. Python versions must now be specified using a `.python-version` file instead. ([#352](#352)) - Removed support for Ubuntu 20.04 (and thus Heroku-20 / `heroku/builder:20`). ([#358](#358)) ### Changed - Improved the error messages shown when `.python-version` contains an invalid Python version or stray invisible characters (such as ASCII control codes). ([#353](#353) and [#354](#354)) - Improved the error messages shown if I/O errors occur. ([#355](#355) and [#356](#356))
Merged
heroku-linguist bot
added a commit
to heroku/cnb-builder-images
that referenced
this pull request
May 2, 2025
## heroku/python ### Removed - Removed support for the deprecated `runtime.txt` file. Python versions must now be specified using a `.python-version` file instead. ([#352](heroku/buildpacks-python#352)) - Removed support for Ubuntu 20.04 (and thus Heroku-20 / `heroku/builder:20`). ([#358](heroku/buildpacks-python#358)) ### Changed - Improved the error messages shown when `.python-version` contains an invalid Python version or stray invisible characters (such as ASCII control codes). ([#353](heroku/buildpacks-python#353) and [#354](heroku/buildpacks-python#354)) - Improved the error messages shown if I/O errors occur. ([#355](heroku/buildpacks-python#355) and [#356](heroku/buildpacks-python#356))
edmorley
added a commit
to heroku/heroku-buildpack-python
that referenced
this pull request
May 2, 2025
Backports the improvements made as part of: - heroku/buildpacks-python#352 - heroku/buildpacks-python#353 - heroku/buildpacks-python#354 - heroku/buildpacks-python#355 Plus: - applies similar changes to equivalent error messages that only exist in the classic buildpack (eg the Pipenv errors) - switches to use of contractions as per the CX team's style guidelines GUS-W-18225347. GUS-W-18421778.
edmorley
added a commit
to heroku/heroku-buildpack-python
that referenced
this pull request
May 2, 2025
Backports the error message/build output improvements made as part of: - heroku/buildpacks-python#352 - heroku/buildpacks-python#353 - heroku/buildpacks-python#354 - heroku/buildpacks-python#355 Plus: - applies similar changes to equivalent error messages that only exist in the classic buildpack (eg the Pipenv errors) - switches to use of contractions as per the CX team's style guidelines GUS-W-18225347. GUS-W-18421778.
edmorley
added a commit
to heroku/heroku-buildpack-python
that referenced
this pull request
May 2, 2025
Backports the error message/build output improvements made as part of: - heroku/buildpacks-python#352 - heroku/buildpacks-python#353 - heroku/buildpacks-python#354 - heroku/buildpacks-python#355 Plus: - applies similar changes to equivalent error messages that only exist in the classic buildpack (eg the Pipenv errors) - switches to use of contractions as per the CX team's style guidelines GUS-W-18225347. GUS-W-18421778.
edmorley
added a commit
to heroku/heroku-buildpack-python
that referenced
this pull request
May 2, 2025
Backports the error message/build output improvements made as part of: - heroku/buildpacks-python#352 - heroku/buildpacks-python#353 - heroku/buildpacks-python#354 - heroku/buildpacks-python#355 Plus: - applies similar changes to equivalent error messages that only exist in the classic buildpack (eg the Pipenv errors) - switches to use of contractions as per the CX team's style guidelines GUS-W-18225347. GUS-W-18421778.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The Heroku-proprietary
runtime.txtfile was previously deprecated in both the classic buildpack and CNB, in favour of the more widely supported.python-versionfile:https://devcenter.heroku.com/changelog-items/3005
https://devcenter.heroku.com/changelog-items/3141
We will be keeping support for
runtime.txtin the classic Python buildpack for a while longer. However, since the CNB is new (and not used by any/many Heroku apps yet since it only GAed this week), we're dropping support forruntime.txthere sooner, to encourage migration to.python-versionwhen apps migrate from Cedar to Fir. (Particularly since uv support will require apps to be using.python-version)Closes #275.
GUS-W-16878263.