-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
49 lines (38 loc) · 832 Bytes
/
Copy pathMakefile
File metadata and controls
49 lines (38 loc) · 832 Bytes
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
all: env install
dev: env pip-tools pip install
.PHONY: env
env:
pyvenv env
.PHONY: pip-tools
pip-tools:
env/bin/pip install --upgrade pip
env/bin/pip install pip-tools
.PHONY: pip
pip: pip-compile
env/bin/pip-sync requirements.txt
.PHONY: pip-compile
pip-compile:
env/bin/pip-compile requirements.in
.PHONY: test
test:
env/bin/py.test timeflow/tests/tests.py
.PHONY: coverage
coverage:
env/bin/py.test --cov=timeflow --cov-report=html timeflow/tests/tests.py
.PHONY: install
install:
env/bin/pip install -r requirements.txt
env/bin/pip install --editable .
.PHONY: uninstall
uninstall:
env/bin/pip uninstall timeflow
.PHONY: tags
tags:
ctags -R
.PHONY: clean
clean: remove_pyc
rm -rf env timeflow.egg-info tags
.PHONY: remove_pyc
remove_pyc:
find . -name "*.pyc" -delete
find . -name "__pycache__" -delete