Skip to content

Commit

Permalink
Show file tree
Hide file tree
Showing 12 changed files with 21 additions and 20 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.8.19, 3.9.19 and 3.10.14. ([#1551](https://github.com/heroku/heroku-buildpack-python/pull/1551))

## [v244] - 2024-03-13

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,6 @@ Supported runtime options include:

- `python-3.12.2` on all [supported stacks](https://devcenter.heroku.com/articles/stack#stack-support-details)
- `python-3.11.8` on all [supported stacks](https://devcenter.heroku.com/articles/stack#stack-support-details)
- `python-3.10.13` on all [supported stacks](https://devcenter.heroku.com/articles/stack#stack-support-details)
- `python-3.9.18` on all [supported stacks](https://devcenter.heroku.com/articles/stack#stack-support-details)
- `python-3.8.18` on Heroku-20 only
- `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)
- `python-3.8.19` on Heroku-20 only
6 changes: 3 additions & 3 deletions bin/default_pythons
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

LATEST_312="python-3.12.2"
LATEST_311="python-3.11.8"
LATEST_310="python-3.10.13"
LATEST_39="python-3.9.18"
LATEST_38="python-3.8.18"
LATEST_310="python-3.10.14"
LATEST_39="python-3.9.19"
LATEST_38="python-3.8.19"
# TODO: Remove these EOL versions once pipenv-python-version is refactored.
LATEST_37="python-3.7.17"
LATEST_36="python-3.6.15"
Expand Down
2 changes: 1 addition & 1 deletion spec/fixtures/ci_nose/runtime.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
python-3.9.18
python-3.9.19
2 changes: 1 addition & 1 deletion spec/fixtures/pipenv_and_runtime_txt/runtime.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
python-3.10.13
python-3.10.14
2 changes: 1 addition & 1 deletion spec/fixtures/python_3.10/runtime.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
python-3.10.13
python-3.10.14
2 changes: 1 addition & 1 deletion spec/fixtures/python_3.8/runtime.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
python-3.8.18
python-3.8.19
2 changes: 1 addition & 1 deletion spec/fixtures/python_3.9/runtime.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
python-3.9.18
python-3.9.19
2 changes: 1 addition & 1 deletion spec/fixtures/runtime_txt_only/runtime.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
python-3.10.13
python-3.10.14
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@

python-3.10.13
python-3.10.14

8 changes: 4 additions & 4 deletions spec/hatchet/python_version_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,12 @@
end
end

context 'when runtime.txt contains python-3.8.18' do
context 'when runtime.txt contains python-3.8.19' do
let(:allow_failure) { false }
let(:app) { Hatchet::Runner.new('spec/fixtures/python_3.8', allow_failure:) }

context 'when using Heroku-20', stacks: %w[heroku-20] do
it 'builds with Python 3.8.18 but shows a deprecation warning' do
it 'builds with Python 3.8.19 but shows a deprecation warning' do
app.deploy do |app|
expect(clean_output(app.output)).to include(<<~OUTPUT)
remote: -----> Python app detected
Expand Down Expand Up @@ -176,13 +176,13 @@
end
end

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

include_examples 'builds with the requested Python version', LATEST_PYTHON_3_9
end

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

include_examples 'builds with the requested Python version', LATEST_PYTHON_3_10
Expand Down
6 changes: 3 additions & 3 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
require 'rspec/core'
require 'hatchet'

LATEST_PYTHON_3_8 = '3.8.18'
LATEST_PYTHON_3_9 = '3.9.18'
LATEST_PYTHON_3_10 = '3.10.13'
LATEST_PYTHON_3_8 = '3.8.19'
LATEST_PYTHON_3_9 = '3.9.19'
LATEST_PYTHON_3_10 = '3.10.14'
LATEST_PYTHON_3_11 = '3.11.8'
LATEST_PYTHON_3_12 = '3.12.2'
DEFAULT_PYTHON_VERSION = LATEST_PYTHON_3_12
Expand Down

0 comments on commit c81716b

Please sign in to comment.