File tree Expand file tree Collapse file tree 3 files changed +16
-7
lines changed Expand file tree Collapse file tree 3 files changed +16
-7
lines changed Original file line number Diff line number Diff line change @@ -50,15 +50,16 @@ export VENDOR_URL
50
50
# as well as prompt the user to upgrade if they are using an un–supported version.
51
51
# Note: When 3.7 lands, I recommend switching to LATEST_36 and LATEST_37.
52
52
DEFAULT_PYTHON_VERSION=" python-3.6.6"
53
- LATEST_3=" python-3.6.6"
53
+ LATEST_36=" python-3.6.6"
54
+ LATEST_37=" python-3.7.0"
54
55
LATEST_2=" python-2.7.15"
55
56
56
57
# Which stack is used (for binary downloading), if none is provided (e.g. outside of Heroku)?
57
58
DEFAULT_PYTHON_STACK=" cedar-14"
58
59
# If pip doesn't match this version (the version we install), run the installer.
59
60
PIP_UPDATE=" 9.0.2"
60
61
61
- export DEFAULT_PYTHON_VERSION DEFAULT_PYTHON_STACK PIP_UPDATE LATEST_2 LATEST_3
62
+ export DEFAULT_PYTHON_VERSION DEFAULT_PYTHON_STACK PIP_UPDATE LATEST_2 LATEST_36 LATEST_37
62
63
63
64
# Common Problem Warnings:
64
65
# This section creates a temporary file in which to stick the output of `pip install`.
Original file line number Diff line number Diff line change @@ -22,7 +22,10 @@ if [[ -f $BUILD_DIR/Pipfile ]]; then
22
22
echo " $LATEST_2 " > " $BUILD_DIR /runtime.txt"
23
23
fi
24
24
if [ " $PYTHON " = 3.6 ]; then
25
- echo " $LATEST_3 " > " $BUILD_DIR /runtime.txt"
25
+ echo " $LATEST_36 " > " $BUILD_DIR /runtime.txt"
26
+ fi
27
+ if [ " $PYTHON " = 3.7 ]; then
28
+ echo " $LATEST_37 " > " $BUILD_DIR /runtime.txt"
26
29
fi
27
30
fi
28
31
Original file line number Diff line number Diff line change @@ -14,12 +14,17 @@ if [[ $PYTHON_VERSION =~ ^python-2 ]]; then
14
14
echo " Learn More: https://devcenter.heroku.com/articles/python-runtimes"
15
15
fi
16
16
else
17
- if [[ " $PYTHON_VERSION " != " $LATEST_3 " ]]; then
18
- puts-warn " The latest version of Python 3 is $LATEST_3 (you are using $PYTHON_VERSION , which is unsupported)."
19
- puts-warn " We recommend upgrading by specifying the latest version ($LATEST_3 )."
17
+ if [[ $PYTHON_VERSION =~ ^python-3.7 ]] && [[ " $PYTHON_VERSION " != " $LATEST_37 " ]]; then
18
+ puts-warn " The latest version of Python 3.7 is $LATEST_37 (you are using $PYTHON_VERSION , which is unsupported)."
19
+ puts-warn " We recommend upgrading by specifying the latest version ($LATEST_37 )."
20
20
echo " Learn More: https://devcenter.heroku.com/articles/python-runtimes"
21
+ else
22
+ if [[ " $PYTHON_VERSION " != " $LATEST_36 " ]]; then
23
+ puts-warn " The latest version of Python 3.6 is $LATEST_36 (you are using $PYTHON_VERSION , which is unsupported)."
24
+ puts-warn " We recommend upgrading by specifying the latest version ($LATEST_36 )."
25
+ echo " Learn More: https://devcenter.heroku.com/articles/python-runtimes"
26
+ fi
21
27
fi
22
-
23
28
fi
24
29
25
30
if [[ " $STACK " != " $CACHED_PYTHON_STACK " ]]; then
You can’t perform that action at this time.
0 commit comments