Skip to content

Commit

Permalink
Add support for Python 3.12.3 (#1560)
Browse files Browse the repository at this point in the history
  • Loading branch information
edmorley authored Apr 9, 2024
1 parent 84216e6 commit 4dd34cd
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## [Unreleased]

- Added support for Python 3.12.3. ([#1560](https://github.com/heroku/heroku-buildpack-python/pull/1560))

## [v247] - 2024-04-08

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ A `requirements.txt` must be present at the root of your application's repositor

To specify your python version, you also need a `runtime.txt` file - unless you are using the default Python runtime version.

Current default Python Runtime: Python 3.12.2
Current default Python Runtime: Python 3.12.3

Alternatively, you can provide a `setup.py` file, or a `Pipfile`.
Using `pipenv` will generate `runtime.txt` at build time if one of the field `python_version` or `python_full_version` is specified in the `requires` section of your `Pipfile`.
Expand All @@ -60,7 +60,7 @@ Specify a Python Runtime

Supported runtime options include:

- `python-3.12.2` on all [supported stacks](https://devcenter.heroku.com/articles/stack#stack-support-details)
- `python-3.12.3` on all [supported stacks](https://devcenter.heroku.com/articles/stack#stack-support-details)
- `python-3.11.9` on all [supported stacks](https://devcenter.heroku.com/articles/stack#stack-support-details)
- `python-3.10.14` on all [supported stacks](https://devcenter.heroku.com/articles/stack#stack-support-details)
- `python-3.9.19` on all [supported stacks](https://devcenter.heroku.com/articles/stack#stack-support-details)
Expand Down
2 changes: 1 addition & 1 deletion bin/default_pythons
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# the env vars to subprocesses.
# shellcheck disable=2034

LATEST_312="python-3.12.2"
LATEST_312="python-3.12.3"
LATEST_311="python-3.11.9"
LATEST_310="python-3.10.14"
LATEST_39="python-3.9.19"
Expand Down
2 changes: 1 addition & 1 deletion spec/fixtures/python_3.12/runtime.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
python-3.12.2
python-3.12.3
2 changes: 1 addition & 1 deletion spec/hatchet/python_version_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@
include_examples 'builds with the requested Python version', LATEST_PYTHON_3_11
end

context 'when runtime.txt contains python-3.12.2' do
context 'when runtime.txt contains python-3.12.3' do
let(:app) { Hatchet::Runner.new('spec/fixtures/python_3.12') }

include_examples 'builds with the requested Python version', LATEST_PYTHON_3_12
Expand Down
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
LATEST_PYTHON_3_9 = '3.9.19'
LATEST_PYTHON_3_10 = '3.10.14'
LATEST_PYTHON_3_11 = '3.11.9'
LATEST_PYTHON_3_12 = '3.12.2'
LATEST_PYTHON_3_12 = '3.12.3'
DEFAULT_PYTHON_VERSION = LATEST_PYTHON_3_12

# The requirement versions are effectively buildpack constants, however, we want
Expand Down

0 comments on commit 4dd34cd

Please sign in to comment.