Skip to content

Commit b4b94ab

Browse files
authored
Merge branch 'master' into test-staged-binaries
2 parents e821501 + 0c66cea commit b4b94ab

File tree

6 files changed

+46
-10
lines changed

6 files changed

+46
-10
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@
55
- Test staged binaries on Travis
66

77
--------------------------------------------------------------------------------
8+
9+
# 160 (2019-10-23)
10+
11+
- Bugfix: Pipenv no longer installs twice in CI
12+
13+
# 159 (2019-10-22)
14+
15+
- Python 2.7.17 now available on Heroku 18 and 16.
16+
817
# 158 (2019-10-21)
918

1019
- Python 3.7.5 and 3.8.0 now available on Heroku 18 and 16.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Supported runtime options include:
6363

6464
- `python-3.7.4`
6565
- `python-3.6.9`
66-
- `python-2.7.16`
66+
- `python-2.7.17`
6767

6868
## Tests
6969

bin/default_pythons

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ LATEST_37="python-3.7.5"
66
LATEST_36="python-3.6.9"
77
LATEST_35="python-3.5.7"
88
LATEST_34="python-3.4.10"
9-
LATEST_27="python-2.7.16"
9+
LATEST_27="python-2.7.17"
1010

1111
export DEFAULT_PYTHON_VERSION LATEST_38 LATEST_37 LATEST_36 LATEST_35 LATEST_34 LATEST_27

bin/steps/pipenv

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,16 @@ if [ ! "$SKIP_PIPENV_INSTALL" ]; then
6060
# avoid this eager behavior.
6161
/app/.heroku/python/bin/pip install pipenv==$PIPENV_VERSION --upgrade --upgrade-strategy only-if-needed &> /dev/null
6262

63+
# Install the test dependencies, for CI.
64+
if [ "$INSTALL_TEST" ]; then
65+
puts-step "Installing test dependencies…"
66+
/app/.heroku/python/bin/pipenv install --dev --system --deploy 2>&1 | cleanup | indent
67+
6368
# Install the dependencies.
64-
if [[ ! -f Pipfile.lock ]]; then
69+
elif [[ ! -f Pipfile.lock ]]; then
6570
puts-step "Installing dependencies with Pipenv $PIPENV_VERSION"
6671
/app/.heroku/python/bin/pipenv install --system --skip-lock 2>&1 | indent
72+
6773
else
6874
pipenv-to-pip Pipfile.lock > requirements.txt
6975
"$BIN_DIR/steps/pip-uninstall"
@@ -73,12 +79,6 @@ if [ ! "$SKIP_PIPENV_INSTALL" ]; then
7379
puts-step "Installing dependencies with Pipenv $PIPENV_VERSION"
7480
/app/.heroku/python/bin/pipenv install --system --deploy 2>&1 | indent
7581
fi
76-
77-
# Install the test dependencies, for CI.
78-
if [ "$INSTALL_TEST" ]; then
79-
puts-step "Installing test dependencies…"
80-
/app/.heroku/python/bin/pipenv install --dev --system --deploy 2>&1 | cleanup | indent
81-
fi
8282
fi
8383
else
8484
export SKIP_PIP_INSTALL=1

builds/runtimes/python-2.7.17

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/usr/bin/env bash
2+
# Build Path: /app/.heroku/python/
3+
4+
OUT_PREFIX=$1
5+
BIN_DIR="$(cd "$(dirname "$0")"/../.. || exit; pwd)/bin"
6+
export BIN_DIR
7+
8+
# shellcheck source=bin/utils
9+
source "$BIN_DIR/steps/sqlite3"
10+
11+
sqlite3_version
12+
echo "Setting up SQLite3 Headers for $SQLITE3_VERSION"
13+
sqlite3_install "$OUT_PREFIX" "$SQLITE3_VERSION" 1
14+
15+
echo "Building Python…"
16+
SOURCE_TARBALL='https://python.org/ftp/python/2.7.17/Python-2.7.17.tgz'
17+
curl -L $SOURCE_TARBALL | tar xz
18+
mv Python-2.7.17 src
19+
cd src
20+
21+
./configure --prefix=$OUT_PREFIX --enable-unicode=ucs4 --with-ensurepip=no
22+
make
23+
make install
24+
25+
# Remove unneeded test directories, similar to the official Docker Python images:
26+
# https://github.com/docker-library/python
27+
find "${OUT_PREFIX}" \( -type d -a \( -name test -o -name tests \) \) -exec rm -rf '{}' +

test/fixtures/python2/runtime.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
python-2.7.16
1+
python-2.7.17

0 commit comments

Comments
 (0)