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

Add support for Python 3.11.8 and 3.12.2 #1538

Merged
merged 1 commit into from
Feb 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## [Unreleased]

- Added support for Python 3.11.8 and 3.12.2. ([#1538](https://github.com/heroku/heroku-buildpack-python/pull/1538)).
- Changed the default Python version for new apps from 3.12.1 to 3.12.2. ([#1538](https://github.com/heroku/heroku-buildpack-python/pull/1538))

## [v242] - 2024-01-11

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ A `requirements.txt` must be present at the root of your application's repositor

To specify your python version, you also need a `runtime.txt` file - unless you are using the default Python runtime version.

Current default Python Runtime: Python 3.12.1
Current default Python Runtime: Python 3.12.2

Alternatively, you can provide a `setup.py` file, or a `Pipfile`.
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`.
Expand All @@ -60,8 +60,8 @@ Specify a Python Runtime

Supported runtime options include:

- `python-3.12.1` on all [supported stacks](https://devcenter.heroku.com/articles/stack#stack-support-details)
- `python-3.11.7` on all [supported stacks](https://devcenter.heroku.com/articles/stack#stack-support-details)
- `python-3.12.2` on all [supported stacks](https://devcenter.heroku.com/articles/stack#stack-support-details)
- `python-3.11.8` on all [supported stacks](https://devcenter.heroku.com/articles/stack#stack-support-details)
- `python-3.10.13` on all [supported stacks](https://devcenter.heroku.com/articles/stack#stack-support-details)
- `python-3.9.18` on all [supported stacks](https://devcenter.heroku.com/articles/stack#stack-support-details)
- `python-3.8.18` on Heroku-20 only
4 changes: 2 additions & 2 deletions bin/default_pythons
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
# the env vars to subprocesses.
# shellcheck disable=2034

LATEST_312="python-3.12.1"
LATEST_311="python-3.11.7"
LATEST_312="python-3.12.2"
LATEST_311="python-3.11.8"
LATEST_310="python-3.10.13"
LATEST_39="python-3.9.18"
LATEST_38="python-3.8.18"
Expand Down
2 changes: 1 addition & 1 deletion spec/fixtures/python_3.11/runtime.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
python-3.11.7
python-3.11.8
2 changes: 1 addition & 1 deletion spec/fixtures/python_3.12/runtime.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
python-3.12.1
python-3.12.2
4 changes: 2 additions & 2 deletions spec/hatchet/python_version_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -188,13 +188,13 @@
include_examples 'builds with the requested Python version', LATEST_PYTHON_3_10
end

context 'when runtime.txt contains python-3.11.7' do
context 'when runtime.txt contains python-3.11.8' do
let(:app) { Hatchet::Runner.new('spec/fixtures/python_3.11') }

include_examples 'builds with the requested Python version', LATEST_PYTHON_3_11
end

context 'when runtime.txt contains python-3.12.1' do
context 'when runtime.txt contains python-3.12.2' do
let(:app) { Hatchet::Runner.new('spec/fixtures/python_3.12') }

include_examples 'builds with the requested Python version', LATEST_PYTHON_3_12
Expand Down
4 changes: 2 additions & 2 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
LATEST_PYTHON_3_8 = '3.8.18'
LATEST_PYTHON_3_9 = '3.9.18'
LATEST_PYTHON_3_10 = '3.10.13'
LATEST_PYTHON_3_11 = '3.11.7'
LATEST_PYTHON_3_12 = '3.12.1'
LATEST_PYTHON_3_11 = '3.11.8'
LATEST_PYTHON_3_12 = '3.12.2'
DEFAULT_PYTHON_VERSION = LATEST_PYTHON_3_12

# The requirement versions are effectively buildpack constants, however, we want
Expand Down