deps: Explain the -e oddness, and handle it uniformly.

This commit is contained in:
Greg Price
2017-09-14 15:45:26 -07:00
committed by Tim Abbott
parent 806220cafa
commit bab2078705
2 changed files with 4 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
six==1.10.0
git+https://github.com/python/mypy.git@d96b2cf22216a4ad6aa55a5726ee35a3fa38c637#egg=mypy==0.530-dev
-e git+https://github.com/python/mypy.git@d96b2cf22216a4ad6aa55a5726ee35a3fa38c637#egg=mypy==0.530-dev
typed-ast==1.1.0
typing==3.6.2

View File

@@ -8,13 +8,11 @@ fi
source /srv/zulip-py3-venv/bin/activate
pip-compile --output-file requirements/prod_lock.txt requirements/prod.txt
# Add the editable flag to mypy for the purpose of building the lockfile for
# dev.txt
sed -i 's/git/-e git/' requirements/mypy.txt
pip-compile --output-file requirements/dev_lock.txt requirements/dev.txt
sed -i 's/-e git/git/' requirements/mypy.txt
# Remove the editable flag in the lock file for safer build
# 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.
sed -i 's/-e //' requirements/prod_lock.txt requirements/dev_lock.txt
# pip-tools bug; future, futures are obsolete in python3