2017-05-12 02:30:38 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
|
2017-09-15 00:45:08 +02:00
|
|
|
# Make sure the Zulip dev virtualenv exists, and operate within it.
|
2017-05-12 02:30:38 +02:00
|
|
|
if [ ! -d /srv/zulip-py3-venv ]; then
|
|
|
|
./tools/setup/setup_venvs.py
|
|
|
|
fi
|
2017-09-15 00:45:08 +02:00
|
|
|
source /srv/zulip-py3-venv/bin/activate
|
2017-05-12 02:30:38 +02:00
|
|
|
|
2017-08-22 06:26:59 +02:00
|
|
|
pip-compile --output-file requirements/prod_lock.txt requirements/prod.txt
|
2017-08-22 02:26:16 +02:00
|
|
|
pip-compile --output-file requirements/dev_lock.txt requirements/dev.txt
|
2017-09-15 00:45:08 +02:00
|
|
|
|
2017-09-15 00:45:26 +02:00
|
|
|
# Remove the editable flag in the lock files. It's there because pip-compile
|
|
|
|
# can't yet do without it (see https://github.com/jazzband/pip-tools/issues/272
|
|
|
|
# upstream), but in the output of pip-compile it's no longer needed.
|
2017-09-15 00:45:08 +02:00
|
|
|
sed -i 's/-e //' requirements/prod_lock.txt requirements/dev_lock.txt
|
|
|
|
|
2017-05-12 02:30:38 +02:00
|
|
|
# pip-tools bug; future, futures are obsolete in python3
|
2017-09-15 00:56:33 +02:00
|
|
|
sed -i '/futures==/d' requirements/prod_lock.txt requirements/dev_lock.txt
|
|
|
|
sed -i '/future==/d' requirements/prod_lock.txt requirements/dev_lock.txt
|