Skip to content
Snippets Groups Projects
Commit 8f258ae0 authored by Kenneth Reitz's avatar Kenneth Reitz
Browse files

remove pipstrip

parent b80f7a95
No related branches found
No related tags found
No related merge requests found
...@@ -5,6 +5,5 @@ if [[ -f Pipfile ]]; then ...@@ -5,6 +5,5 @@ if [[ -f Pipfile ]]; then
/app/.heroku/python/bin/pip install pipenv --upgrade &> /dev/null /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 /app/.heroku/python/bin/pipenv lock --requirements --no-hashes > $BUILD_DIR/requirements.txt 2> /dev/null
pipstrip requirements.txt
fi fi
fi fi
\ No newline at end of file
#!/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))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment