forked from openedx/edx-organizations
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
28 lines (22 loc) · 848 Bytes
/
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
all: requirements quality test
.PHONY: clean requirements quality test upgrade
clean:
coverage erase
find . -name '*.pyc' -delete
quality:
tox -e quality
requirements:
pip install -qr requirements/pip.txt
pip install -e . # Install this package and its dependencies
pip install -r test-requirements.txt
upgrade: export CUSTOM_COMPILE_COMMAND=make upgrade
upgrade: ## update the requirements text files based on the requirements/*.in files
pip install -q pip-tools
pip-compile --upgrade --allow-unsafe --rebuild -o requirements/pip.txt requirements/pip.in
pip-compile --upgrade -o requirements/base.txt requirements/base.in
pip-compile --upgrade -o test-requirements.txt requirements/test.in
# Let tox control the Django version for tests
sed -i.tmp '/^django==/d' test-requirements.txt
rm test-requirements.txt.tmp
test:
tox