Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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

- Python 3.9.13 is now available ([#1326](https://github.com/heroku/heroku-buildpack-python/pull/1326)).
- Use shared builds + LTO when building Python 3.10 binaries ([#1320](https://github.com/heroku/heroku-buildpack-python/pull/1320)).
Note: This and the other Python binary changes below will only take effect for future Python
version releases (or future Heroku stacks) - existing Python binaries are not being recompiled.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,6 @@ Specify a Python Runtime
Supported runtime options include:

- `python-3.10.4`
- `python-3.9.12`
- `python-3.9.13`
- `python-3.8.13`
- `python-3.7.13`
2 changes: 1 addition & 1 deletion bin/default_pythons
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# shellcheck disable=2034

LATEST_310="python-3.10.4"
LATEST_39="python-3.9.12"
LATEST_39="python-3.9.13"
LATEST_38="python-3.8.13"
LATEST_37="python-3.7.13"
LATEST_36="python-3.6.15"
Expand Down
8 changes: 6 additions & 2 deletions builds/runtimes/python
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,12 @@ set -o xtrace
curl --fail --retry 3 --connect-timeout 5 --max-time 60 -o python.tgz "${SOURCE_URL}"
curl --fail --retry 3 --connect-timeout 5 --max-time 60 -o python.tgz.asc "${SIGNATURE_URL}"

gpg --batch --recv-keys "${GPG_KEY_FINGERPRINT}"
gpg --batch --verify python.tgz.asc python.tgz
# Skip GPG verification on Heroku-18 since it fails to fetch keys:
# `gpg: keyserver receive failed: Server indicated a failure`
if [[ "${STACK}" != "heroku-18" ]]; then
gpg --batch --verbose --recv-keys "${GPG_KEY_FINGERPRINT}"
gpg --batch --verify python.tgz.asc python.tgz
fi

mkdir src
tar --extract --file python.tgz --strip-components=1 --directory src/
Expand Down
5 changes: 5 additions & 0 deletions builds/runtimes/python-3.9.13
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash
# Build Path: /app/.heroku/python

# shellcheck source-path=SCRIPTDIR
source "$(dirname "${0}")/python"
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.12
python-3.9.13
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.12
python-3.9.13
2 changes: 1 addition & 1 deletion spec/hatchet/python_version_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@
include_examples 'builds with the requested Python version', LATEST_PYTHON_3_8
end

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

include_examples 'builds with the requested Python version', LATEST_PYTHON_3_9
Expand Down
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
LATEST_PYTHON_3_6 = '3.6.15'
LATEST_PYTHON_3_7 = '3.7.13'
LATEST_PYTHON_3_8 = '3.8.13'
LATEST_PYTHON_3_9 = '3.9.12'
LATEST_PYTHON_3_9 = '3.9.13'
LATEST_PYTHON_3_10 = '3.10.4'
LATEST_PYPY_2_7 = '7.3.2'
LATEST_PYPY_3_6 = '7.3.2'
Expand Down