diff --git a/CHANGELOG.md b/CHANGELOG.md index cbd564eaf..2069d75ed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/README.md b/README.md index 2bc72f6d7..103a3fc14 100644 --- a/README.md +++ b/README.md @@ -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`. @@ -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 diff --git a/bin/default_pythons b/bin/default_pythons index 48a8a9f9e..70480a2c6 100755 --- a/bin/default_pythons +++ b/bin/default_pythons @@ -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" diff --git a/spec/fixtures/python_3.11/runtime.txt b/spec/fixtures/python_3.11/runtime.txt index 1f79d441f..cf3b80423 100644 --- a/spec/fixtures/python_3.11/runtime.txt +++ b/spec/fixtures/python_3.11/runtime.txt @@ -1 +1 @@ -python-3.11.7 +python-3.11.8 diff --git a/spec/fixtures/python_3.12/runtime.txt b/spec/fixtures/python_3.12/runtime.txt index 178174578..6e797d468 100644 --- a/spec/fixtures/python_3.12/runtime.txt +++ b/spec/fixtures/python_3.12/runtime.txt @@ -1 +1 @@ -python-3.12.1 +python-3.12.2 diff --git a/spec/hatchet/python_version_spec.rb b/spec/hatchet/python_version_spec.rb index 5eef1dbc6..734e97884 100644 --- a/spec/hatchet/python_version_spec.rb +++ b/spec/hatchet/python_version_spec.rb @@ -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 diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index c83ff440d..502bc9025 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -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