Skip to content

Commit

Permalink
Add support for Python 3.9.8 (#1263)
Browse files Browse the repository at this point in the history
  • Loading branch information
edmorley authored Nov 8, 2021
1 parent 27c1622 commit 421ab38
Show file tree
Hide file tree
Showing 12 changed files with 18 additions and 11 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.9.8 is now available ([#1263](https://github.com/heroku/heroku-buildpack-python/pull/1263)).
- The default Python version for new apps is now 3.9.8 (previously 3.9.7) ([#1263](https://github.com/heroku/heroku-buildpack-python/pull/1263)).

## v202 (2021-11-01)

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.9.7
Current default Python Runtime: Python 3.9.8

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 @@ -61,7 +61,7 @@ Specify a Python Runtime
Supported runtime options include:

- `python-3.10.0`
- `python-3.9.7`
- `python-3.9.8`
- `python-3.8.12`
- `python-3.7.12`
- `python-3.6.15`
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.0"
LATEST_39="python-3.9.7"
LATEST_39="python-3.9.8"
LATEST_38="python-3.8.12"
LATEST_37="python-3.7.12"
LATEST_36="python-3.6.15"
Expand Down
4 changes: 4 additions & 0 deletions builds/runtimes/python-3.9.8
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash
# Build Path: /app/.heroku/python/

source $(dirname $0)/python3-new
4 changes: 2 additions & 2 deletions builds/runtimes/python3-new
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/usr/bin/env bash

# This file will eventually be merged into the main `python3` build script,
# however for Python 3.10 we are using some new configure options that we wish
# to trial only in the Python 3.10 builds first.
# however for Python 3.9/3.10 we are using some new configure options that we wish
# to trial only in new Python builds first.

set -euo pipefail

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.9.7
python-3.9.8
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.7
python-3.9.8
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.9.7
python-3.9.8
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@

python-3.9.7
python-3.9.8

2 changes: 1 addition & 1 deletion spec/hatchet/python_version_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@
include_examples 'builds with the requested Python version', LATEST_PYTHON_3_8
end

context 'when runtime.txt contains python-3.9.7' do
context 'when runtime.txt contains python-3.9.8' 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
1 change: 1 addition & 0 deletions spec/hatchet/stack_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
remote: -----> No Python version was specified. Using the same version as the last build: python-#{DEFAULT_PYTHON_VERSION}
remote: To use a different version, see: https://devcenter.heroku.com/articles/python-runtimes
remote: python: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by python)
remote: python: /lib/x86_64-linux-gnu/libpthread.so.0: version `GLIBC_2.30' not found (required by python)
remote: python: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by python)
remote: -----> Stack has changed from heroku-20 to heroku-18, clearing cache
remote: -----> No change in requirements detected, installing from cache
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.12'
LATEST_PYTHON_3_8 = '3.8.12'
LATEST_PYTHON_3_9 = '3.9.7'
LATEST_PYTHON_3_9 = '3.9.8'
LATEST_PYTHON_3_10 = '3.10.0'
LATEST_PYPY_2_7 = '7.3.2'
LATEST_PYPY_3_6 = '7.3.2'
Expand Down

0 comments on commit 421ab38

Please sign in to comment.