From 109644fa501bab52857a553c78a1e08d078eaa06 Mon Sep 17 00:00:00 2001 From: Ed Morley <501702+edmorley@users.noreply.github.com> Date: Thu, 28 Jul 2022 12:17:06 +0100 Subject: [PATCH 1/2] Add support for Python 3.10.6 (#1342) https://blog.python.org/2022/08/python-3106-is-available.html https://www.python.org/downloads/release/python-3106/ https://docs.python.org/release/3.10.6/whatsnew/changelog.html#python-3-10-6-final GUS-W-10333179. --- CHANGELOG.md | 2 ++ bin/default_pythons | 2 +- builds/runtimes/python-3.10.6 | 5 +++++ spec/fixtures/pipenv_and_runtime_txt/runtime.txt | 2 +- spec/fixtures/python_3.10/runtime.txt | 2 +- spec/fixtures/runtime_txt_only/runtime.txt | 2 +- spec/fixtures/runtime_txt_with_stray_whitespace/runtime.txt | 2 +- spec/hatchet/python_version_spec.rb | 2 +- spec/spec_helper.rb | 2 +- 9 files changed, 14 insertions(+), 7 deletions(-) create mode 100755 builds/runtimes/python-3.10.6 diff --git a/CHANGELOG.md b/CHANGELOG.md index 804b1588c..46a290775 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +- Python 3.10.6 is now available ([#1342](https://github.com/heroku/heroku-buildpack-python/pull/1342)). +- The default Python version for new apps is now 3.10.6 (previously 3.10.5) ([#1342](https://github.com/heroku/heroku-buildpack-python/pull/1342)). ## v213 (2022-06-14) diff --git a/bin/default_pythons b/bin/default_pythons index 8a1abb52a..1945fae80 100755 --- a/bin/default_pythons +++ b/bin/default_pythons @@ -5,7 +5,7 @@ # the env vars to subprocesses. # shellcheck disable=2034 -LATEST_310="python-3.10.5" +LATEST_310="python-3.10.6" LATEST_39="python-3.9.13" LATEST_38="python-3.8.13" LATEST_37="python-3.7.13" diff --git a/builds/runtimes/python-3.10.6 b/builds/runtimes/python-3.10.6 new file mode 100755 index 000000000..6bc9111eb --- /dev/null +++ b/builds/runtimes/python-3.10.6 @@ -0,0 +1,5 @@ +#!/usr/bin/env bash +# Build Path: /app/.heroku/python + +# shellcheck source-path=SCRIPTDIR +source "$(dirname "${0}")/python" diff --git a/spec/fixtures/pipenv_and_runtime_txt/runtime.txt b/spec/fixtures/pipenv_and_runtime_txt/runtime.txt index a5da7cc4d..7a33c420a 100644 --- a/spec/fixtures/pipenv_and_runtime_txt/runtime.txt +++ b/spec/fixtures/pipenv_and_runtime_txt/runtime.txt @@ -1 +1 @@ -python-3.10.5 +python-3.10.6 diff --git a/spec/fixtures/python_3.10/runtime.txt b/spec/fixtures/python_3.10/runtime.txt index a5da7cc4d..7a33c420a 100644 --- a/spec/fixtures/python_3.10/runtime.txt +++ b/spec/fixtures/python_3.10/runtime.txt @@ -1 +1 @@ -python-3.10.5 +python-3.10.6 diff --git a/spec/fixtures/runtime_txt_only/runtime.txt b/spec/fixtures/runtime_txt_only/runtime.txt index a5da7cc4d..7a33c420a 100644 --- a/spec/fixtures/runtime_txt_only/runtime.txt +++ b/spec/fixtures/runtime_txt_only/runtime.txt @@ -1 +1 @@ -python-3.10.5 +python-3.10.6 diff --git a/spec/fixtures/runtime_txt_with_stray_whitespace/runtime.txt b/spec/fixtures/runtime_txt_with_stray_whitespace/runtime.txt index 3f0f55c2e..736c8f076 100644 --- a/spec/fixtures/runtime_txt_with_stray_whitespace/runtime.txt +++ b/spec/fixtures/runtime_txt_with_stray_whitespace/runtime.txt @@ -1,3 +1,3 @@ - python-3.10.5 + python-3.10.6 \ No newline at end of file diff --git a/spec/hatchet/python_version_spec.rb b/spec/hatchet/python_version_spec.rb index 3bd00fd16..8abd40add 100644 --- a/spec/hatchet/python_version_spec.rb +++ b/spec/hatchet/python_version_spec.rb @@ -236,7 +236,7 @@ include_examples 'builds with the requested Python version', LATEST_PYTHON_3_9 end - context 'when runtime.txt contains python-3.10.5' do + context 'when runtime.txt contains python-3.10.6' do let(:app) { Hatchet::Runner.new('spec/fixtures/python_3.10') } include_examples 'builds with the requested Python version', LATEST_PYTHON_3_10 diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 11ecf5c48..4ddd74d9c 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -13,7 +13,7 @@ LATEST_PYTHON_3_7 = '3.7.13' LATEST_PYTHON_3_8 = '3.8.13' LATEST_PYTHON_3_9 = '3.9.13' -LATEST_PYTHON_3_10 = '3.10.5' +LATEST_PYTHON_3_10 = '3.10.6' LATEST_PYPY_2_7 = '7.3.2' LATEST_PYPY_3_6 = '7.3.2' DEFAULT_PYTHON_VERSION = LATEST_PYTHON_3_10 From 814ea8582e44030fa175d30ddb0253622999d407 Mon Sep 17 00:00:00 2001 From: Ed Morley <501702+edmorley@users.noreply.github.com> Date: Tue, 2 Aug 2022 12:50:22 +0100 Subject: [PATCH 2/2] Release v214 (#1342) GUS-W-11532135. --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 46a290775..a22c31a46 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ ## Unreleased + +## v214 (2022-08-02) + - Python 3.10.6 is now available ([#1342](https://github.com/heroku/heroku-buildpack-python/pull/1342)). - The default Python version for new apps is now 3.10.6 (previously 3.10.5) ([#1342](https://github.com/heroku/heroku-buildpack-python/pull/1342)).