File tree Expand file tree Collapse file tree 6 files changed +53
-6
lines changed Expand file tree Collapse file tree 6 files changed +53
-6
lines changed Original file line number Diff line number Diff line change 1
1
# Python Buildpack Changelog
2
2
3
+ # 136
4
+
5
+ Upgrade to 3.6.6 and support 3.7.0 on all runtimes.
6
+
3
7
# 135
4
8
5
9
Upgrade Pipenv to v2018.5.18.
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ Deploying a Python application couldn't be easier:
23
23
$ git push heroku master
24
24
…
25
25
-----> Python app detected
26
- -----> Installing python-3.6.5
26
+ -----> Installing python-3.6.6
27
27
-----> Installing pip
28
28
-----> Installing requirements with Pipenv 2018.5.18…
29
29
...
@@ -58,5 +58,6 @@ Or, with a `runtime.txt` file:
58
58
59
59
Runtime options include:
60
60
61
- - ` python-3.6.5 `
61
+ - ` python-3.7.0 `
62
+ - ` python-3.6.6 `
62
63
- ` python-2.7.15 `
Original file line number Diff line number Diff line change @@ -49,8 +49,8 @@ export VENDOR_URL
49
49
# These variables are used to specify which versions of Python to install by default,
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
- DEFAULT_PYTHON_VERSION=" python-3.6.5 "
53
- LATEST_3=" python-3.6.5 "
52
+ DEFAULT_PYTHON_VERSION=" python-3.6.6 "
53
+ LATEST_3=" python-3.6.6 "
54
54
LATEST_2=" python-2.7.15"
55
55
56
56
# Which stack is used (for binary downloading), if none is provided (e.g. outside of Heroku)?
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ # Build Path: /app/.heroku/python/
3
+ # Build Deps: libraries/sqlite
4
+
5
+ OUT_PREFIX=$1
6
+
7
+ echo " Building Python…"
8
+ SOURCE_TARBALL=' https://python.org/ftp/python/3.6.6/Python-3.6.6.tgz'
9
+ curl -L $SOURCE_TARBALL | tar xz
10
+ mv Python-3.6.6 src
11
+ cd src
12
+
13
+ ./configure --prefix=$OUT_PREFIX --with-ensurepip=no
14
+ make
15
+ make install
16
+
17
+ # Remove unneeded test directories, similar to the official Docker Python images:
18
+ # https://github.com/docker-library/python
19
+ find " ${OUT_PREFIX} " \( -type d -a \( -name test -o -name tests \) \) -exec rm -rf ' {}' +
20
+
21
+ ln $OUT_PREFIX /bin/python3 $OUT_PREFIX /bin/python
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ # Build Path: /app/.heroku/python/
3
+ # Build Deps: libraries/sqlite
4
+
5
+ OUT_PREFIX=$1
6
+
7
+ echo " Building Python…"
8
+ SOURCE_TARBALL=' https://python.org/ftp/python/3.7.0/Python-3.7.0.tgz'
9
+ curl -L $SOURCE_TARBALL | tar xz
10
+ mv Python-3.7.0 src
11
+ cd src
12
+
13
+ ./configure --prefix=$OUT_PREFIX --with-ensurepip=no
14
+ make
15
+ make install
16
+
17
+ # Remove unneeded test directories, similar to the official Docker Python images:
18
+ # https://github.com/docker-library/python
19
+ find " ${OUT_PREFIX} " \( -type d -a \( -name test -o -name tests \) \) -exec rm -rf ' {}' +
20
+
21
+ ln $OUT_PREFIX /bin/python3 $OUT_PREFIX /bin/python
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ testPipenvLock() {
12
12
13
13
testPipenvVersion () {
14
14
compile " pipenv-version"
15
- assertCaptured " 3.6.5 "
15
+ assertCaptured " 3.6.6 "
16
16
assertCapturedSuccess
17
17
}
18
18
@@ -83,7 +83,7 @@ testPython2() {
83
83
84
84
testPython3 () {
85
85
compile " python3"
86
- assertCaptured " python-3.6.5 "
86
+ assertCaptured " python-3.6.6 "
87
87
assertCapturedSuccess
88
88
}
89
89
You can’t perform that action at this time.
0 commit comments