forked from dimagi/commcare-hq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (33 loc) · 2.95 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
.PHONY: requirements upgrade-requirements
scripts/_vendor/pip-post-compile.sh:
mkdir -p scripts/_vendor
curl https://raw.githubusercontent.com/edx/edx-platform/e3b6cad173dee4ba969759102224ef12010938a7/scripts/post-pip-compile.sh \
> scripts/_vendor/pip-post-compile.sh
requirements: export CUSTOM_COMPILE_COMMAND=`make requirements` or `make upgrade-requirements`
requirements: scripts/_vendor/pip-post-compile.sh
pip-compile -o requirements/requirements.txt requirements/requirements.in
pip-compile -o requirements/prod-requirements.txt requirements/prod-requirements.in --allow-unsafe
pip-compile -o requirements/test-requirements.txt requirements/test-requirements.in
pip-compile -o requirements/dev-requirements.txt requirements/dev-requirements.in
pip-compile -o requirements/docs-requirements.txt requirements/docs-requirements.in
bash scripts/pip-post-compile.sh requirements/*requirements.txt
cp requirements/*requirements.txt requirements-python3_6/
grep -v '^futures==' requirements-python3_6/requirements.txt > temp && mv temp requirements-python3_6/requirements.txt
grep -v '^futures==' requirements-python3_6/prod-requirements.txt > temp && mv temp requirements-python3_6/prod-requirements.txt
grep -v '^futures==' requirements-python3_6/test-requirements.txt > temp && mv temp requirements-python3_6/test-requirements.txt
grep -v '^futures==' requirements-python3_6/dev-requirements.txt > temp && mv temp requirements-python3_6/dev-requirements.txt
grep -v '^futures==' requirements-python3_6/docs-requirements.txt > temp && mv temp requirements-python3_6/docs-requirements.txt
upgrade-requirements: export CUSTOM_COMPILE_COMMAND=`make requirements` or `make upgrade-requirements`
upgrade-requirements: scripts/_vendor/pip-post-compile.sh
pip-compile --upgrade -o requirements/requirements.txt requirements/requirements.in
pip-compile --upgrade -o requirements/prod-requirements.txt requirements/prod-requirements.in --allow-unsafe
pip-compile --upgrade -o requirements/test-requirements.txt requirements/test-requirements.in
pip-compile --upgrade -o requirements/dev-requirements.txt requirements/dev-requirements.in
pip-compile --upgrade -o requirements/docs-requirements.txt requirements/docs-requirements.in
bash scripts/pip-post-compile.sh requirements/*requirements.txt
cp requirements/*requirements.txt requirements-python3_6/
grep -v '^futures==' requirements-python3_6/requirements.txt > temp && mv temp requirements-python3_6/requirements.txt
grep -v '^futures==' requirements-python3_6/prod-requirements.txt > temp && mv temp requirements-python3_6/prod-requirements.txt
grep -v '^futures==' requirements-python3_6/test-requirements.txt > temp && mv temp requirements-python3_6/test-requirements.txt
grep -v '^futures==' requirements-python3_6/dev-requirements.txt > temp && mv temp requirements-python3_6/dev-requirements.txt
grep -v '^futures==' requirements-python3_6/docs-requirements.txt > temp && mv temp requirements-python3_6/docs-requirements.txt