forked from openedx-unsupported/configuration
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Makefile
executable file
·48 lines (43 loc) · 2.15 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
39
40
41
42
43
44
45
46
47
48
SHELL := /bin/bash
.PHONY: help requirements clean build test pkg
help: main.help
main.help:
@echo ''
@echo 'Makefile for the edX Configuration'
@echo ''
@echo 'Usage:'
@echo ' make requirements install requirements'
@echo ' make upgrade upgrade dependencies in requirements files'
@echo ' make test run all tests'
@echo ' make build build everything'
@echo ' make pkg package everything'
@echo ' make clean remove build by-products'
@echo ''
requirements:
pip install -qr pre-requirements.txt --exists-action w
pip install -qr requirements.txt --exists-action w
upgrade: ## update the pip requirements files to use the latest releases satisfying our constraints
pip install -qr pre-requirements.txt --exists-action w
pip install -qr requirements/pip-tools.txt
# Make sure to compile files after any other files they include!
pip-compile --upgrade -o requirements/pip-tools.txt requirements/pip-tools.in
pip-compile --upgrade -o requirements.txt requirements/base.in
pip-compile --upgrade -o playbooks/roles/aws/templates/requirements.txt.j2 requirements/aws.in
pip-compile --upgrade -o requirements3.txt requirements/ses-limits.in
pip-compile --upgrade -o util/elasticsearch/requirements.txt requirements/elasticsearch.in
pip-compile --upgrade -o util/jenkins/requirements-celery.txt requirements/celery.in
pip-compile --upgrade -o util/jenkins/requirements-cloudflare.txt requirements/cloudflare.in
pip-compile --upgrade -o util/pingdom/requirements.txt requirements/pingdom.in
pip-compile --upgrade -o util/vpc-tools/requirements.txt requirements/vpc-tools.in
# Post process all of the files generated above to work around open pip-tools issues
util/post-pip-compile.sh \
requirements/pip-tools.txt \
requirements.txt \
playbooks/roles/aws/templates/requirements.txt.j2 \
requirements3.txt \
util/elasticsearch/requirements.txt \
util/jenkins/requirements-celery.txt \
util/jenkins/requirements-cloudflare.txt \
util/pingdom/requirements.txt \
util/vpc-tools/requirements.txt
include *.mk