From def8ded50782ddbebc62c570445165e6f6f16837 Mon Sep 17 00:00:00 2001 From: Ed Morley <501702+edmorley@users.noreply.github.com> Date: Thu, 6 Apr 2023 08:50:32 +0100 Subject: [PATCH] Support Python 3.10.11 and 3.11.3 https://blog.python.org/2023/04/its-time-for-another-set-of-python.html https://docs.python.org/release/3.10.11/whatsnew/changelog.html#python-3-10-11-final https://docs.python.org/release/3.11.3/whatsnew/changelog.html#python-3-11-3 The binaries were built using GitHub Actions: https://github.com/heroku/heroku-buildpack-python/actions/runs/4623261574 https://github.com/heroku/heroku-buildpack-python/actions/runs/4623259900 GUS-W-12345405. GUS-W-12345408. --- CHANGELOG.md | 3 +++ src/python_version.rs | 2 +- tests/fixtures/python_3.10/runtime.txt | 2 +- tests/fixtures/python_3.11/runtime.txt | 2 +- tests/integration/mod.rs | 4 ++-- tests/integration/pip.rs | 2 +- 6 files changed, 9 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ed8c9f3..ed3794b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Changed + +- The default Python version is now 3.11.3 (previously 3.11.2). ## [0.1.0] - 2023-03-06 diff --git a/src/python_version.rs b/src/python_version.rs index 456725e..202ef56 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: 11, - patch: 2, + patch: 3, }; /// Representation of a specific Python `X.Y.Z` version. diff --git a/tests/fixtures/python_3.10/runtime.txt b/tests/fixtures/python_3.10/runtime.txt index 9769138..c2d5a35 100644 --- a/tests/fixtures/python_3.10/runtime.txt +++ b/tests/fixtures/python_3.10/runtime.txt @@ -1 +1 @@ -python-3.10.10 +python-3.10.11 diff --git a/tests/fixtures/python_3.11/runtime.txt b/tests/fixtures/python_3.11/runtime.txt index 04d03e3..afe12ad 100644 --- a/tests/fixtures/python_3.11/runtime.txt +++ b/tests/fixtures/python_3.11/runtime.txt @@ -1 +1 @@ -python-3.11.2 +python-3.11.3 diff --git a/tests/integration/mod.rs b/tests/integration/mod.rs index 43afd4f..a301a6e 100644 --- a/tests/integration/mod.rs +++ b/tests/integration/mod.rs @@ -12,8 +12,8 @@ mod salesforce_functions; const LATEST_PYTHON_3_7: &str = "3.7.16"; const LATEST_PYTHON_3_8: &str = "3.8.16"; const LATEST_PYTHON_3_9: &str = "3.9.16"; -const LATEST_PYTHON_3_10: &str = "3.10.10"; -const LATEST_PYTHON_3_11: &str = "3.11.2"; +const LATEST_PYTHON_3_10: &str = "3.10.11"; +const LATEST_PYTHON_3_11: &str = "3.11.3"; const DEFAULT_PYTHON_VERSION: &str = LATEST_PYTHON_3_11; const DEFAULT_BUILDER: &str = "heroku/builder:22"; diff --git a/tests/integration/pip.rs b/tests/integration/pip.rs index f3c1723..7cd590f 100644 --- a/tests/integration/pip.rs +++ b/tests/integration/pip.rs @@ -210,7 +210,7 @@ fn cache_discarded_on_multiple_changes() { [Installing Python and packaging tools] Discarding cache since: - the stack has changed from heroku-20 to heroku-22 - - the Python version has changed from 3.10.10 to 3.11.2 + - the Python version has changed from {LATEST_PYTHON_3_10} to {LATEST_PYTHON_3_11} Installing Python {LATEST_PYTHON_3_11} Installing pip {pip_version}, setuptools {setuptools_version} and wheel {wheel_version}