Skip to content

File tree

12 files changed

+35
-22
lines changed

12 files changed

+35
-22
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Changed
11+
12+
- Updated the default Python version from 3.12.5 to 3.12.6. ([#266](https://github.com/heroku/buildpacks-python/pull/266))
13+
1014
## [0.17.0] - 2024-09-04
1115

1216
### Added

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ To install a different version, add a `runtime.txt` file to your app's root dire
4343

4444
```term
4545
$ cat runtime.txt
46-
python-3.12.5
46+
python-3.12.6
4747
```
4848

4949
In the future this buildpack will also support specifying the Python version using:

src/python_version.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use std::path::Path;
99
pub(crate) const DEFAULT_PYTHON_VERSION: PythonVersion = PythonVersion {
1010
major: 3,
1111
minor: 12,
12-
patch: 5,
12+
patch: 6,
1313
};
1414

1515
/// Representation of a specific Python `X.Y.Z` version.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
python-3.10.14
1+
python-3.10.15
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
python-3.10.14
1+
python-3.10.15
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
python-3.11.9
1+
python-3.11.10
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
python-3.12.5
1+
python-3.12.6

tests/fixtures/python_3.8/runtime.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
python-3.8.19
1+
python-3.8.20

tests/fixtures/python_3.9/runtime.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
python-3.9.19
1+
python-3.9.20

tests/mod.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ use std::env;
1515
use std::path::Path;
1616

1717
const LATEST_PYTHON_3_7: &str = "3.7.17";
18-
const LATEST_PYTHON_3_8: &str = "3.8.19";
19-
const LATEST_PYTHON_3_9: &str = "3.9.19";
20-
const LATEST_PYTHON_3_10: &str = "3.10.14";
21-
const LATEST_PYTHON_3_11: &str = "3.11.9";
22-
const LATEST_PYTHON_3_12: &str = "3.12.5";
18+
const LATEST_PYTHON_3_8: &str = "3.8.20";
19+
const LATEST_PYTHON_3_9: &str = "3.9.20";
20+
const LATEST_PYTHON_3_10: &str = "3.10.15";
21+
const LATEST_PYTHON_3_11: &str = "3.11.10";
22+
const LATEST_PYTHON_3_12: &str = "3.12.6";
2323
const DEFAULT_PYTHON_VERSION: &str = LATEST_PYTHON_3_12;
2424

2525
const DEFAULT_BUILDER: &str = "heroku/builder:24";

tests/pip_test.rs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -188,18 +188,21 @@ fn pip_cache_previous_buildpack_version() {
188188
To use a different version, see: https://devcenter.heroku.com/articles/python-runtimes
189189
190190
[Installing Python]
191-
Using cached Python {DEFAULT_PYTHON_VERSION}
191+
Discarding cached Python 3.12.5 since:
192+
- The Python version has changed from 3.12.5 to {DEFAULT_PYTHON_VERSION}
193+
Installing Python {DEFAULT_PYTHON_VERSION}
192194
193195
[Installing pip]
194-
Using cached pip {PIP_VERSION}
196+
Discarding cached pip {PIP_VERSION}
197+
Installing pip {PIP_VERSION}
195198
196199
[Installing dependencies using pip]
197-
Using cached pip download/wheel cache
200+
Discarding cached pip download/wheel cache
198201
Creating virtual environment
199202
Running 'pip install -r requirements.txt'
200203
Collecting typing-extensions==4.12.2 (from -r requirements.txt (line 2))
201-
Using cached typing_extensions-4.12.2-py3-none-any.whl.metadata (3.0 kB)
202-
Using cached typing_extensions-4.12.2-py3-none-any.whl (37 kB)
204+
Downloading typing_extensions-4.12.2-py3-none-any.whl.metadata (3.0 kB)
205+
Downloading typing_extensions-4.12.2-py3-none-any.whl (37 kB)
203206
Installing collected packages: typing-extensions
204207
Successfully installed typing-extensions-4.12.2
205208
"}

tests/poetry_test.rs

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,17 +171,23 @@ fn poetry_cache_previous_buildpack_version() {
171171
To use a different version, see: https://devcenter.heroku.com/articles/python-runtimes
172172
173173
[Installing Python]
174-
Using cached Python {DEFAULT_PYTHON_VERSION}
174+
Discarding cached Python 3.12.5 since:
175+
- The Python version has changed from 3.12.5 to {DEFAULT_PYTHON_VERSION}
176+
Installing Python {DEFAULT_PYTHON_VERSION}
175177
176178
[Installing Poetry]
177-
Using cached Poetry {POETRY_VERSION}
179+
Discarding cached Poetry {POETRY_VERSION}
180+
Installing Poetry {POETRY_VERSION}
178181
179182
[Installing dependencies using Poetry]
180-
Using cached virtual environment
183+
Discarding cached virtual environment
184+
Creating virtual environment
181185
Running 'poetry install --sync --only main'
182186
Installing dependencies from lock file
183187
184-
No dependencies to install or update
188+
Package operations: 1 install, 0 updates, 0 removals
189+
190+
- Installing typing-extensions (4.12.2)
185191
"}
186192
);
187193
});

0 commit comments

Comments
 (0)