From 9a830367fe3fc963fa199a21fecf293c7aa7a5f0 Mon Sep 17 00:00:00 2001 From: Casey Faist Date: Thu, 17 Oct 2019 14:59:26 -0700 Subject: [PATCH] add 3.8 support --- CHANGELOG.md | 1 + bin/compile | 1 + bin/default_pythons | 5 +++-- bin/steps/python | 8 ++++++++ 4 files changed, 13 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e2265d6..d54db85 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ # Master +- Add support for Python 3.8 branch - Sqlite3 Update: - Add Tests - Test for Pysqlite diff --git a/bin/compile b/bin/compile index 284b313..9319463 100755 --- a/bin/compile +++ b/bin/compile @@ -52,6 +52,7 @@ export VENDOR_URL source "$BIN_DIR/default_pythons" # Supported Python Branches +PY38="python-3.8" PY37="python-3.7" PY36="python-3.6" PY35="python-3.5" diff --git a/bin/default_pythons b/bin/default_pythons index e0f443f..ecc569c 100755 --- a/bin/default_pythons +++ b/bin/default_pythons @@ -1,10 +1,11 @@ #!/usr/bin/env bash DEFAULT_PYTHON_VERSION="python-3.6.9" +LATEST_38="python-3.8.0" +LATEST_37="python-3.7.5" LATEST_36="python-3.6.9" -LATEST_37="python-3.7.4" LATEST_35="python-3.5.7" LATEST_34="python-3.4.10" LATEST_27="python-2.7.16" -export DEFAULT_PYTHON_VERSION LATEST_37 LATEST_36 LATEST_35 LATEST_34 LATEST_27 +export DEFAULT_PYTHON_VERSION LATEST_38 LATEST_37 LATEST_36 LATEST_35 LATEST_34 LATEST_27 diff --git a/bin/steps/python b/bin/steps/python index 2d00754..8b553d5 100755 --- a/bin/steps/python +++ b/bin/steps/python @@ -10,6 +10,14 @@ VENDORED_PYTHON="${VENDOR_URL}/runtimes/$PYTHON_VERSION.tar.gz" SECURITY_UPDATE="Python has released a security update! Please consider upgrading to" # check if runtime exists +if curl --output /dev/null --silent --head --fail "$VENDORED_PYTHON"; then + if [[ "$PYTHON_VERSION" == $PY38* ]]; then + # do things to alert the user of security release available + if [ "$PYTHON_VERSION" != "$LATEST_38" ]; then + puts-warn "$SECURITY_UPDATE" "$LATEST_38" + echo " Learn More: https://devcenter.heroku.com/articles/python-runtimes" + fi + fi if curl --output /dev/null --silent --head --fail "$VENDORED_PYTHON"; then if [[ "$PYTHON_VERSION" == $PY37* ]]; then # do things to alert the user of security release available