From 60b9d1a5621213cbc82e1f1f697468186a9c9ee3 Mon Sep 17 00:00:00 2001 From: Ed Morley <501702+edmorley@users.noreply.github.com> Date: Tue, 18 Aug 2020 12:38:54 +0100 Subject: [PATCH] Add support for Python 3.6.12 and 3.7.9 (#1054) Since they were released yesterday: https://www.python.org/downloads/release/python-3612/ https://www.python.org/downloads/release/python-379/ Closes @W-7975179@. Closes @W-7975181@. --- CHANGELOG.md | 2 ++ README.md | 8 ++++---- bin/default_pythons | 6 +++--- builds/runtimes/python-3.6.12 | 4 ++++ builds/runtimes/python-3.7.9 | 4 ++++ 5 files changed, 17 insertions(+), 7 deletions(-) create mode 100755 builds/runtimes/python-3.6.12 create mode 100755 builds/runtimes/python-3.7.9 diff --git a/CHANGELOG.md b/CHANGELOG.md index 46f64f6..1502675 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +- Python 3.6.12 and 3.7.9 are now available (CPython) (#1054). +- The default Python version for new apps is now 3.6.12 (previously 3.6.11) (#1054). ## v176 (2020-08-12) diff --git a/README.md b/README.md index 3c4855a..40d0b2b 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ remote: Compressing source files... done. remote: Building source: remote: remote: -----> Python app detected -remote: -----> Installing python-3.7.4 +remote: -----> Installing python remote: -----> Installing pip remote: -----> Installing SQLite3 remote: -----> Installing requirements with pip @@ -44,7 +44,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.6.9 +Current default Python Runtime: Python 3.6.12 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`. @@ -63,8 +63,8 @@ Specify a Python Runtime Supported runtime options include: - `python-3.8.5` -- `python-3.7.8` -- `python-3.6.11` +- `python-3.7.9` +- `python-3.6.12` - `python-2.7.18` ## Tests diff --git a/bin/default_pythons b/bin/default_pythons index 96d1303..67e4153 100755 --- a/bin/default_pythons +++ b/bin/default_pythons @@ -5,10 +5,10 @@ # the env vars to subprocesses. # shellcheck disable=2034 -DEFAULT_PYTHON_VERSION="python-3.6.11" +DEFAULT_PYTHON_VERSION="python-3.6.12" LATEST_38="python-3.8.5" -LATEST_37="python-3.7.8" -LATEST_36="python-3.6.11" +LATEST_37="python-3.7.9" +LATEST_36="python-3.6.12" LATEST_35="python-3.5.9" LATEST_34="python-3.4.10" LATEST_27="python-2.7.18" diff --git a/builds/runtimes/python-3.6.12 b/builds/runtimes/python-3.6.12 new file mode 100755 index 0000000..ad41723 --- /dev/null +++ b/builds/runtimes/python-3.6.12 @@ -0,0 +1,4 @@ +#!/usr/bin/env bash +# Build Path: /app/.heroku/python/ + +source $(dirname $0)/python3 diff --git a/builds/runtimes/python-3.7.9 b/builds/runtimes/python-3.7.9 new file mode 100755 index 0000000..ad41723 --- /dev/null +++ b/builds/runtimes/python-3.7.9 @@ -0,0 +1,4 @@ +#!/usr/bin/env bash +# Build Path: /app/.heroku/python/ + +source $(dirname $0)/python3