mirror of
https://github.com/kennethreitz/heroku-buildpack-python.git
synced 2026-06-05 23:10:16 +00:00
14 lines
335 B
Plaintext
Executable File
14 lines
335 B
Plaintext
Executable File
# Generate requriements.txt with pipenv.
|
|
|
|
if [[ -f Pipfile ]]; then
|
|
if [[ ! -f requirements.txt ]]; then
|
|
puts-step "Generating 'requirements.txt' with pipenv"
|
|
|
|
pip install pipenv --upgrade &> /dev/null
|
|
pipenv lock --requirements > requirements.txt 2> /dev/null
|
|
|
|
pipstrip requirements.txt
|
|
fi
|
|
fi
|
|
|