Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Python 3.10.1 #1271

Merged
merged 1 commit into from
Dec 6, 2021
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.10.1 is now available ([#1271](https://github.com/heroku/heroku-buildpack-python/pull/1271)).

## v204 (2021-11-16)

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Specify a Python Runtime

Supported runtime options include:

- `python-3.10.0`
- `python-3.10.1`
- `python-3.9.9`
- `python-3.8.12`
- `python-3.7.12`
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_310="python-3.10.0"
LATEST_310="python-3.10.1"
LATEST_39="python-3.9.9"
LATEST_38="python-3.8.12"
LATEST_37="python-3.7.12"
Expand Down
4 changes: 4 additions & 0 deletions builds/runtimes/python-3.10.1
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
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.0
python-3.10.1
2 changes: 1 addition & 1 deletion spec/hatchet/python_update_warning_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
include_examples 'warns there is a Python update available', '3.9.0', LATEST_PYTHON_3_9
end

context 'with a runtime.txt containing python-3.10.0', skip: 'requires that Python 3.10.1+ exists' do
context 'with a runtime.txt containing python-3.10.0' do
let(:app) { Hatchet::Runner.new('spec/fixtures/python_3.10_outdated') }

include_examples 'warns there is a Python update available', '3.10.0', LATEST_PYTHON_3_10
Expand Down
2 changes: 1 addition & 1 deletion spec/hatchet/python_version_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@
include_examples 'builds with the requested Python version', LATEST_PYTHON_3_9
end

context 'when runtime.txt contains python-3.10.0' do
context 'when runtime.txt contains python-3.10.1' 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
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
LATEST_PYTHON_3_7 = '3.7.12'
LATEST_PYTHON_3_8 = '3.8.12'
LATEST_PYTHON_3_9 = '3.9.9'
LATEST_PYTHON_3_10 = '3.10.0'
LATEST_PYTHON_3_10 = '3.10.1'
LATEST_PYPY_2_7 = '7.3.2'
LATEST_PYPY_3_6 = '7.3.2'
DEFAULT_PYTHON_VERSION = LATEST_PYTHON_3_9
Expand Down