mirror of
https://github.com/kennethreitz/heroku-buildpack-python.git
synced 2026-06-05 23:10:16 +00:00
remove pipstrip
This commit is contained in:
@@ -5,6 +5,5 @@ if [[ -f Pipfile ]]; then
|
||||
|
||||
/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
|
||||
pipstrip requirements.txt
|
||||
fi
|
||||
fi
|
||||
Vendored
-15
@@ -1,15 +0,0 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
import sys
|
||||
|
||||
req_file = sys.argv[1]
|
||||
|
||||
lines = []
|
||||
|
||||
with open(req_file, 'r') as f:
|
||||
r = f.readlines()
|
||||
for l in r:
|
||||
lines.append(l.split('--hash')[0])
|
||||
|
||||
with open(req_file, 'w') as f:
|
||||
f.write('\n'.join(lines))
|
||||
Reference in New Issue
Block a user