Skip to content

Commit

Permalink
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 14 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Unreleased

- Python 3.10.11 and 3.11.3 are now available ([#1433](https://github.com/heroku/heroku-buildpack-python/pull/1433)).
- The default Python version for new apps is now 3.11.3 (previously 3.11.2) ([#1433](https://github.com/heroku/heroku-buildpack-python/pull/1433)).

## v229 (2023-03-10)

Expand Down
6 changes: 3 additions & 3 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.11.2
Current default Python Runtime: Python 3.11.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,8 +60,8 @@ Specify a Python Runtime

Supported runtime options include:

- `python-3.11.2` on all [supported stacks](https://devcenter.heroku.com/articles/stack#stack-support-details)
- `python-3.10.10` on all [supported stacks](https://devcenter.heroku.com/articles/stack#stack-support-details)
- `python-3.11.3` on all [supported stacks](https://devcenter.heroku.com/articles/stack#stack-support-details)
- `python-3.10.11` on all [supported stacks](https://devcenter.heroku.com/articles/stack#stack-support-details)
- `python-3.9.16` on all [supported stacks](https://devcenter.heroku.com/articles/stack#stack-support-details)
- `python-3.8.16` on Heroku-18 and Heroku-20 only
- `python-3.7.16` on Heroku-18 and Heroku-20 only
4 changes: 2 additions & 2 deletions bin/default_pythons
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
# the env vars to subprocesses.
# shellcheck disable=2034

LATEST_311="python-3.11.2"
LATEST_310="python-3.10.10"
LATEST_311="python-3.11.3"
LATEST_310="python-3.10.11"
LATEST_39="python-3.9.16"
LATEST_38="python-3.8.16"
LATEST_37="python-3.7.16"
Expand Down
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.10
python-3.10.11
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.10
python-3.10.11
2 changes: 1 addition & 1 deletion spec/fixtures/python_3.11/runtime.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
python-3.11.2
python-3.11.3
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.10
python-3.10.11
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@

python-3.10.10
python-3.10.11

4 changes: 2 additions & 2 deletions spec/hatchet/python_version_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -267,13 +267,13 @@
include_examples 'builds with the requested Python version', LATEST_PYTHON_3_9
end

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

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

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

include_examples 'builds with the requested Python version', LATEST_PYTHON_3_11
Expand Down
4 changes: 2 additions & 2 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
LATEST_PYTHON_3_7 = '3.7.16'
LATEST_PYTHON_3_8 = '3.8.16'
LATEST_PYTHON_3_9 = '3.9.16'
LATEST_PYTHON_3_10 = '3.10.10'
LATEST_PYTHON_3_11 = '3.11.2'
LATEST_PYTHON_3_10 = '3.10.11'
LATEST_PYTHON_3_11 = '3.11.3'
DEFAULT_PYTHON_VERSION = LATEST_PYTHON_3_11

PIP_VERSION = '23.0.1'
Expand Down

0 comments on commit 2f9522b

Please sign in to comment.