-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (28 loc) · 834 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
35
36
BLK = black
PIP = pip3
BASEDIR = $(CURDIR)
SRCDIR = ${BASEDIR}/skymap
help:
@echo 'Makefile for skymap'
@echo 'Usage:'
@echo 'make black reformat the code using black code formatter'
@echo 'make clean remove temporary files'
@echo 'make install install the package locally'
@echo 'make test run the non-interactive regression tests'
@echo 'make testall run all regression tests'
black:
${BLK} *.py */*.py */*/*.py
clean:
rm -f ${SRCDIR}/*.pyc
rm -rf ${SRCDIR}/__pycache__
rm -rf ${BASEDIR}/*/__pycache__
rm -rf ${BASEDIR}/build
rm -rf ${BASEDIR}/dist
rm -rf ${BASEDIR}/skymap.egg-info
install:
${PIP} install .
test:
pytest --verbose -m 'not interactive'
testall:
pytest --verbose -s
.PHONY: help black clean install test testall