mirror of
https://github.com/kennethreitz/heroku-buildpack-python.git
synced 2026-06-05 23:10:16 +00:00
10 lines
386 B
Plaintext
10 lines
386 B
Plaintext
# Pipenv support (Generate requriements.txt with pipenv).
|
|
if [[ -f Pipfile ]]; then
|
|
if [[ ! -f requirements.txt ]]; then
|
|
puts-step "Generating 'requirements.txt' with pipenv"
|
|
|
|
/app/.heroku/python/bin/pip install pipenv --upgrade &> /dev/null
|
|
|
|
/app/.heroku/python/bin/pipenv lock --requirements --no-hashes > $BUILD_DIR/requirements.txt 2> /dev/null
|
|
fi
|
|
fi |