Skip to content

Use Python 3.11 as the default Python version for new apps#1408

Merged
edmorley merged 1 commit intomainfrom
python-3.11-default
Feb 14, 2023
Merged

Use Python 3.11 as the default Python version for new apps#1408
edmorley merged 1 commit intomainfrom
python-3.11-default

Conversation

@edmorley
Copy link
Copy Markdown
Member

@edmorley edmorley commented Feb 14, 2023

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.

@edmorley edmorley self-assigned this Feb 14, 2023
@edmorley edmorley force-pushed the python-3.11-default branch from 180c241 to bdcef62 Compare February 14, 2023 07:52
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.
@edmorley edmorley force-pushed the python-3.11-default branch from bdcef62 to 6bdb608 Compare February 14, 2023 08:00
@edmorley edmorley marked this pull request as ready for review February 14, 2023 08:10
@edmorley edmorley requested a review from a team as a code owner February 14, 2023 08:10
@edmorley edmorley merged commit f98c1d8 into main Feb 14, 2023
@edmorley edmorley deleted the python-3.11-default branch February 14, 2023 08:31
@edmorley edmorley mentioned this pull request Feb 14, 2023
@edmorley
Copy link
Copy Markdown
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants