Skip to content

Commit c732097

Browse files
zyvkennethreitz
authored andcommitted
Output pipenv version in steps (heroku#662)
* Since pipenv is being pinned now, output pinned version in steps Signed-off-by: Yury V. Zaytsev <[email protected]> * Update README.md example output to match new reality Signed-off-by: Yury V. Zaytsev <[email protected]> * Update pipenv
1 parent 00947ab commit c732097

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Deploying a Python application couldn't be easier:
2525
-----> Python app detected
2626
-----> Installing python-3.6.4
2727
-----> Installing pip
28-
-----> Installing requirements with latest pipenv
28+
-----> Installing requirements with Pipenv 11.7.1
2929
...
3030
Installing dependencies from Pipfile…
3131
-----> Discovering process types

bin/steps/pipenv

+5-3
Original file line numberDiff line numberDiff line change
@@ -41,20 +41,22 @@ if [ ! "$SKIP_PIPENV_INSTALL" ]; then
4141
export PIP_EXTRA_INDEX_URL
4242
fi
4343

44+
export PIPENV_VERSION="11.8.2"
45+
4446
# Install pipenv.
45-
/app/.heroku/python/bin/pip install pipenv==11.7.1 --upgrade &> /dev/null
47+
/app/.heroku/python/bin/pip install pipenv==$PIPENV_VERSION --upgrade &> /dev/null
4648

4749
# Install the dependencies.
4850
if [[ ! -f Pipfile.lock ]]; then
49-
puts-step "Installing dependencies with latest Pipenv…"
51+
puts-step "Installing dependencies with Pipenv $PIPENV_VERSION"
5052
/app/.heroku/python/bin/pipenv install --system --skip-lock 2>&1 | indent
5153
else
5254
pipenv-to-pip Pipfile.lock > requirements.txt
5355
"$BIN_DIR/steps/pip-uninstall"
5456
cp requirements.txt .heroku/python/requirements-declared.txt
5557
openssl dgst -sha256 Pipfile.lock > .heroku/python/Pipfile.lock.sha256
5658

57-
puts-step "Installing dependencies with latest Pipenv…"
59+
puts-step "Installing dependencies with Pipenv $PIPENV_VERSION"
5860
/app/.heroku/python/bin/pipenv install --system --deploy 2>&1 | indent
5961
fi
6062

0 commit comments

Comments
 (0)