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.10 as the default Python version for new apps #1296

Merged
merged 1 commit into from
Mar 22, 2022

Conversation

edmorley
Copy link
Member

@edmorley edmorley commented Mar 22, 2022

Previously if a new app did not specify a Python version via a runtime.txt or the appropriate Pipfile config option, then the buildpack would default to the latest Python 3.9 release (currently Python 3.9.11).

Now the buildpack will use the latest Python 3.10 release (currently Python 3.10.3).

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

However most apps should be compatible, since Python 3.10 was released some time ago (2021-10-04), and has been happily used by the python-getting-started project since 2021-10-29.

GUS-W-10881777.

@edmorley edmorley requested a review from a team as a code owner March 22, 2022 16:22
@edmorley edmorley marked this pull request as draft March 22, 2022 16:24
@edmorley edmorley force-pushed the python-3.10-default branch from a8fed5f to c4ea5a8 Compare March 22, 2022 16:37
@edmorley edmorley self-assigned this Mar 22, 2022
@edmorley edmorley force-pushed the python-3.10-default branch from c4ea5a8 to 4c13490 Compare March 22, 2022 16:44
@edmorley edmorley marked this pull request as ready for review March 22, 2022 16:44
Previously if a new app did not specify a Python version via a
`runtime.txt` or the appropriate `Pipfile` config option, then the
buildpack would default to the latest Python 3.9 release (currently
Python 3.9.11).

Now the buildpack will use the latest Python 3.10 release (currently
Python 3.10.3).

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

GUS-W-10881777.
@edmorley edmorley force-pushed the python-3.10-default branch from 4c13490 to c7db105 Compare March 22, 2022 16:48
@edmorley edmorley merged commit 6d97414 into main Mar 22, 2022
@edmorley edmorley deleted the python-3.10-default branch March 22, 2022 21:17
edmorley added a commit that referenced this pull request Mar 23, 2022
@edmorley edmorley mentioned this pull request Mar 23, 2022
edmorley added a commit that referenced this pull request Mar 23, 2022
@edmorley
Copy link
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