Skip to content

Commit

Permalink
Show file tree
Hide file tree
Showing 11 changed files with 25 additions and 18 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.5 to 3.12.6. ([#266](https://github.com/heroku/buildpacks-python/pull/266))

## [0.17.0] - 2024-09-04

### Added
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ To install a different version, add a `runtime.txt` file to your app's root dire

```term
$ cat runtime.txt
python-3.12.5
python-3.12.6
```

In the future this buildpack will also support specifying the Python version using:
Expand Down
2 changes: 1 addition & 1 deletion src/python_version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use std::path::Path;
pub(crate) const DEFAULT_PYTHON_VERSION: PythonVersion = PythonVersion {
major: 3,
minor: 12,
patch: 5,
patch: 6,
};

/// Representation of a specific Python `X.Y.Z` version.
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
python-3.10.14
python-3.10.15
2 changes: 1 addition & 1 deletion tests/fixtures/python_3.10/runtime.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
python-3.10.14
python-3.10.15
2 changes: 1 addition & 1 deletion tests/fixtures/python_3.11/runtime.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
python-3.11.9
python-3.11.10
2 changes: 1 addition & 1 deletion tests/fixtures/python_3.12/runtime.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
python-3.12.5
python-3.12.6
2 changes: 1 addition & 1 deletion tests/fixtures/python_3.8/runtime.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
python-3.8.19
python-3.8.20
2 changes: 1 addition & 1 deletion tests/fixtures/python_3.9/runtime.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
python-3.9.19
python-3.9.20
10 changes: 5 additions & 5 deletions tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ use std::env;
use std::path::Path;

const LATEST_PYTHON_3_7: &str = "3.7.17";
const LATEST_PYTHON_3_8: &str = "3.8.19";
const LATEST_PYTHON_3_9: &str = "3.9.19";
const LATEST_PYTHON_3_10: &str = "3.10.14";
const LATEST_PYTHON_3_11: &str = "3.11.9";
const LATEST_PYTHON_3_12: &str = "3.12.5";
const LATEST_PYTHON_3_8: &str = "3.8.20";
const LATEST_PYTHON_3_9: &str = "3.9.20";
const LATEST_PYTHON_3_10: &str = "3.10.15";
const LATEST_PYTHON_3_11: &str = "3.11.10";
const LATEST_PYTHON_3_12: &str = "3.12.6";
const DEFAULT_PYTHON_VERSION: &str = LATEST_PYTHON_3_12;

const DEFAULT_BUILDER: &str = "heroku/builder:24";
Expand Down
13 changes: 8 additions & 5 deletions tests/pip_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,18 +188,21 @@ fn pip_cache_previous_buildpack_version() {
To use a different version, see: https://devcenter.heroku.com/articles/python-runtimes
[Installing Python]
Using cached Python {DEFAULT_PYTHON_VERSION}
Discarding cached Python 3.12.5 since:
- The Python version has changed from 3.12.5 to {DEFAULT_PYTHON_VERSION}
Installing Python {DEFAULT_PYTHON_VERSION}
[Installing pip]
Using cached pip {PIP_VERSION}
Discarding cached pip {PIP_VERSION}
Installing pip {PIP_VERSION}
[Installing dependencies using pip]
Using cached pip download/wheel cache
Discarding cached pip download/wheel cache
Creating virtual environment
Running 'pip install -r requirements.txt'
Collecting typing-extensions==4.12.2 (from -r requirements.txt (line 2))
Using cached typing_extensions-4.12.2-py3-none-any.whl.metadata (3.0 kB)
Using cached typing_extensions-4.12.2-py3-none-any.whl (37 kB)
Downloading typing_extensions-4.12.2-py3-none-any.whl.metadata (3.0 kB)
Downloading typing_extensions-4.12.2-py3-none-any.whl (37 kB)
Installing collected packages: typing-extensions
Successfully installed typing-extensions-4.12.2
"}
Expand Down

0 comments on commit ced14fd

Please sign in to comment.