From 2fde32d67c21d4524a1201da1f72c50264d2c15e Mon Sep 17 00:00:00 2001 From: Ed Morley <501702+edmorley@users.noreply.github.com> Date: Wed, 7 Feb 2024 10:20:05 +0000 Subject: [PATCH] Add support for Python 3.11.8 and 3.12.2 (#167) Release notes: https://www.python.org/downloads/release/python-3118/ https://www.python.org/downloads/release/python-3122/ Binary builds: https://github.com/heroku/heroku-buildpack-python/actions/runs/7812574422 https://github.com/heroku/heroku-buildpack-python/actions/runs/7812572989 GUS-W-14846643. GUS-W-14846693. --- CHANGELOG.md | 4 ++++ src/python_version.rs | 2 +- tests/fixtures/python_3.11/runtime.txt | 2 +- tests/fixtures/python_3.12/runtime.txt | 2 +- tests/mod.rs | 4 ++-- 5 files changed, 9 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4ee8abf..189bd88 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Changed + +- Updated the default Python version from 3.12.1 to 3.12.2. ([#167](https://github.com/heroku/buildpacks-python/pull/167)) + ## [0.8.1] - 2024-01-11 ### Changed diff --git a/src/python_version.rs b/src/python_version.rs index 9630da3..63dd928 100644 --- a/src/python_version.rs +++ b/src/python_version.rs @@ -9,7 +9,7 @@ use std::path::Path; pub(crate) const DEFAULT_PYTHON_VERSION: PythonVersion = PythonVersion { major: 3, minor: 12, - patch: 1, + patch: 2, }; /// Representation of a specific Python `X.Y.Z` version. diff --git a/tests/fixtures/python_3.11/runtime.txt b/tests/fixtures/python_3.11/runtime.txt index 1f79d44..cf3b804 100644 --- a/tests/fixtures/python_3.11/runtime.txt +++ b/tests/fixtures/python_3.11/runtime.txt @@ -1 +1 @@ -python-3.11.7 +python-3.11.8 diff --git a/tests/fixtures/python_3.12/runtime.txt b/tests/fixtures/python_3.12/runtime.txt index 1781745..6e797d4 100644 --- a/tests/fixtures/python_3.12/runtime.txt +++ b/tests/fixtures/python_3.12/runtime.txt @@ -1 +1 @@ -python-3.12.1 +python-3.12.2 diff --git a/tests/mod.rs b/tests/mod.rs index c16d5cc..4848436 100644 --- a/tests/mod.rs +++ b/tests/mod.rs @@ -15,8 +15,8 @@ const LATEST_PYTHON_3_7: &str = "3.7.17"; const LATEST_PYTHON_3_8: &str = "3.8.18"; const LATEST_PYTHON_3_9: &str = "3.9.18"; const LATEST_PYTHON_3_10: &str = "3.10.13"; -const LATEST_PYTHON_3_11: &str = "3.11.7"; -const LATEST_PYTHON_3_12: &str = "3.12.1"; +const LATEST_PYTHON_3_11: &str = "3.11.8"; +const LATEST_PYTHON_3_12: &str = "3.12.2"; const DEFAULT_PYTHON_VERSION: &str = LATEST_PYTHON_3_12; const DEFAULT_BUILDER: &str = "heroku/builder:22";