You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use Python 3.11 as the default Python version for new apps
Previously if a new app did not specify a Python version via a
`runtime.txt` file or the appropriate `Pipfile` config option, then the
buildpack would default to the latest Python 3.10 release (currently
Python 3.10.10).
Now the buildpack will use the latest Python 3.11 release (currently
Python 3.11.2).
This does not affect:
* apps that specify an explicit Python version
* existing apps that have already had a build using the previous default
version (since that version is remembered from one build to the next,
via the "sticky versions" feature).
Use-cases involving new apps that aren't compatible with Python 3.11
will now need to specify Python 3.10 explicitly:
https://devcenter.heroku.com/articles/python-support#specifying-a-python-version
However most apps should be compatible, since Python 3.11 was released
several months ago (2022-10-24), does not contain significant breaking
changes over Python 3.10, and has been happily used by the
python-getting-started project since 2022-10-25.
GUS-W-12345720.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,7 @@
2
2
3
3
## Unreleased
4
4
5
+
- Use Python 3.11 as the default Python version for new apps (previously Python 3.10) ([#1408](https://github.com/heroku/heroku-buildpack-python/pull/1408)).
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,7 @@ A `requirements.txt` must be present at the root of your application's repositor
42
42
43
43
To specify your python version, you also need a `runtime.txt` file - unless you are using the default Python runtime version.
44
44
45
-
Current default Python Runtime: Python 3.10.10
45
+
Current default Python Runtime: Python 3.11.2
46
46
47
47
Alternatively, you can provide a `setup.py` file, or a `Pipfile`.
48
48
Using `pipenv` will generate `runtime.txt` at build time if one of the field `python_version` or `python_full_version` is specified in the `requires` section of your `Pipfile`.
remote: .*: RuntimeWarning: 'nltk.downloader' found in sys.modules after import of package 'nltk', but prior to execution of 'nltk.downloader'; this may result in unpredictable behaviour
15
-
remote: warn\\(RuntimeWarning\\(msg\\)\\)
16
15
remote: \\[nltk_data\\] Downloading package city_database to
0 commit comments