-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
59 lines (45 loc) · 1.07 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
49
50
51
52
53
54
55
56
57
58
59
.PHONY: docs
.PHONY: list
.PHONY: lint
.PHONY: upload
.PHONY: venv
.PHONY: venv3
.PHONY: active
.PHONY: active3
.PHONY: dev
.PHONY: dev3
.PHONY: tox
.PHONY: cov
.PHONY: covhtml
list:
@$(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | sort | egrep -v -e '^[^[:alnum:]]' -e '^$@$$' | xargs
active3: #run surrounded by backticks
. .venv/bin/activate
active: #run surrounded by backticks
. .virtualenv/bin/activate
dev:
python27 setup.py develop
dev3:
python3 setup.py develop
venv:
virtualenv .virtualenv
.virtualenv/bin/pip install -e .
.virtualenv/bin/pip install -r requirements.txt
venv3:
python3 -m venv .venv
.venv/bin/pip install -e .
.venv/bin/pip install -r requirements.txt
test:
pytest
lint:
pylint --ignore=test nyc-mt-cc
cov:
py.test --cov=nyc-mt-cc nyc-mt-cc/test/
covhtml:
py.test --cov-report html:docs/cov --cov=nyc-mt-cc nyc-mt-cc/test/
upload: docs
python setup.py sdist upload
docs:
python setup.py build_sphinx --build-dir docs
tox:
tox