blob: c038b08ac398ba781c0af59e0fc849c899074171 (
plain)
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
49
|
REQUIREMENTS_FILE=dev-requirements.txt
REQUIREMENTS_OUT=dev-requirements.txt.log
SETUP_OUT=*.egg-info
all: setup requirements
virtualenv:
ifndef VIRTUAL_ENV
$(error Must be run inside of a virtualenv)
endif
setup: virtualenv $(SETUP_OUT)
$(SETUP_OUT): setup.py setup.cfg
python setup.py develop
touch $(SETUP_OUT)
requirements: setup $(REQUIREMENTS_OUT)
piprot: setup
pip install piprot
piprot -x $(REQUIREMENTS_FILE)
$(REQUIREMENTS_OUT): $(REQUIREMENTS_FILE)
pip install -r $(REQUIREMENTS_FILE) | tee -a $(REQUIREMENTS_OUT)
python setup.py develop
clean:
find . -name "*.py[oc]" -delete
find . -name "__pycache__" -delete
rm -f $(REQUIREMENTS_OUT)
rm -rf docs/_build
rm -rf build/
test: requirements
nosetests
test-all: requirements
tox
docs:
cd docs && pip install -r doc-requirements.txt && make html
release:
./release.sh
.PHONY: docs
|