-
Notifications
You must be signed in to change notification settings - Fork 54
/
Makefile
48 lines (37 loc) · 1.04 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
project := django_opentracing
.PHONY: test publish install clean clean-build clean-pyc clean-test build
install:
pip install -r requirements.txt
pip install -r requirements-test.txt
python setup.py install
check-virtual-env:
@echo virtual-env: $${VIRTUAL_ENV?"Please run in virtual-env"}
bootstrap: check-virtual-env
pip install -r requirements.txt
pip install -r requirements-test.txt
python setup.py develop
clean: clean-build clean-pyc clean-test
clean-build:
python setup.py clean
rm -fr build/
rm -fr dist/
rm -fr .eggs/
rm -fr .cache/
find . -name '*.egg-info' -exec rm -fr {} +
find . -name '*.egg' -exec rm -rf {} +
clean-pyc:
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +
find . -name '__pycache__' -exec rm -fr {} +
clean-test:
rm -f .coverage
rm -f coverage.xml
rm -fr htmlcov/
lint:
# Ignore single/double quotes related errors, as Django uses them extensively.
flake8 --ignore=Q000,Q002 $(project)
test:
make -C tests test
build:
python setup.py build