Skip to content
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

Use Python 3.12 as the default Python version for new apps #1516

Merged
merged 1 commit into from
Dec 5, 2023

Conversation

edmorley
Copy link
Member

@edmorley edmorley commented Dec 5, 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.11 release.

Now the buildpack will use the latest Python 3.12 release.

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.12 will now need to specify Python 3.11 explicitly:
https://devcenter.heroku.com/articles/python-support#specifying-a-python-version

However most apps should be compatible, since Python 3.12 was released a couple of months ago (2023-10-02), does not contain significant breaking changes over Python 3.11, and has been happily used by the python-getting-started project since 2023-10-04.

See:
https://docs.python.org/3.12/whatsnew/3.12.html

GUS-W-14217493.

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.11 release.

Now the buildpack will use the latest Python 3.12 release.

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.12
will now need to specify Python 3.11 explicitly:
https://devcenter.heroku.com/articles/python-support#specifying-a-python-version

However most apps should be compatible, since Python 3.12 was released
a couple of months ago (2023-10-02), does not contain significant breaking
changes over Python 3.11, and has been happily used by the
python-getting-started project since 2023-10-04.

See:
https://docs.python.org/3.12/whatsnew/3.12.html

GUS-W-14217493.
@edmorley edmorley self-assigned this Dec 5, 2023
@edmorley edmorley marked this pull request as ready for review December 5, 2023 14:12
@edmorley edmorley requested a review from a team as a code owner December 5, 2023 14:12
@edmorley edmorley enabled auto-merge (squash) December 5, 2023 14:24
@edmorley edmorley merged commit 20657a5 into main Dec 5, 2023
4 checks passed
@edmorley edmorley deleted the default-python-3.12 branch December 5, 2023 14:34
@edmorley
Copy link
Member Author

edmorley commented Dec 8, 2023

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