remove pipstrip

This commit is contained in:
2017-03-16 12:16:59 -04:00
parent b80f7a953f
commit 8f258ae0b8
2 changed files with 0 additions and 16 deletions
-1
View File
@@ -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
-15
View File
@@ -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))