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 #152

Merged
merged 1 commit into from
Dec 5, 2023
Merged

Conversation

edmorley
Copy link
Member

@edmorley edmorley commented Dec 5, 2023

Previously if an app did not specify a Python version via a runtime.txt file, then the buildpack would default to the latest Python 3.11 release.

Now the buildpack will use the latest Python 3.12 release.

Use-cases involving new apps that aren't compatible with Python 3.12 will now need to specify Python 3.11 explicitly.

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.

Note: For the Python CNB, this change also affects existing apps, since the CNB no longer uses the "stick versions" approach used by the classic Python buildpack.

See:
https://docs.python.org/3.12/whatsnew/3.12.html
heroku/heroku-buildpack-python#1516

GUS-W-14217496.

Previously if a new app did not specify a Python version via a
`runtime.txt` file, then the buildpack would default to the latest
Python 3.11 release.

Now the buildpack will use the latest Python 3.12 release.

Use-cases involving new apps that aren't compatible with Python 3.12
will now need to specify Python 3.11 explicitly.

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.

Note: For the Python CNB, this change also affects existing apps,
since the CNB no longer uses the "stick versions" approach used
by the classic Python buildpack.

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

GUS-W-14217496.
@edmorley edmorley self-assigned this Dec 5, 2023
@edmorley edmorley marked this pull request as ready for review December 5, 2023 14:51
@edmorley edmorley requested a review from a team as a code owner December 5, 2023 14:51
@edmorley edmorley enabled auto-merge (squash) December 5, 2023 14:52
@edmorley edmorley merged commit 9bce2f7 into main Dec 5, 2023
6 checks passed
@edmorley edmorley deleted the default-python-3.12 branch December 5, 2023 16:37
heroku-linguist bot added a commit to heroku/cnb-builder-images that referenced this pull request Dec 8, 2023
## heroku/python

### Changed

- Updated the default Python version from 3.11.6 to 3.12.1. ([#152](heroku/buildpacks-python#152) and [#154](heroku/buildpacks-python#154))
- Updated wheel from 0.41.3 to 0.42.0. ([#150](heroku/buildpacks-python#150))

Co-authored-by: heroku-linguist[bot] <136119646+heroku-linguist[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants