forked from vanallenlab/comut
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
34 lines (27 loc) · 892 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
29
30
31
32
33
34
# Makefile macros (or variables)
PYTHON ?= python
PYTEST ?= pytest
CTAGS ?= ctags
# .PHONY defines parts of the makefile that are not dependant on any specific file
# This is most often used to store functions
.PHONY = clean develop install tags test
clean:
rm -f tags
rm -rf build
rm -rf dist
rm -rf *.egg-info
develop:
@echo "---------------Install prettypy in develop mode-----------------"
$(PYTHON) -m pip install -e .
sdist:
@echo "---------------Build distribution for prettypy-----------------"
$(PYTHON) setup.py sdist
install:
@echo "---------------Install prettypy-----------------"
$(PYTHON) setup.py install
tags:
$(CTAGS) --python-kinds=-i --exclude=*/tests/* -R .
test:
@echo "---------------Run prettypy tests-----------------"
$(PYTHON) -m pip install pytest pytest-cov
$(PYTEST) --cov-config=.coveragerc --cov-report xml:coverage.xml --cov=comut tests/