- Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (19 loc) · 619 Bytes
/
Makefile
File metadata and controls
29 lines (19 loc) · 619 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
.PHONY: all install list lint release test version notebooks
PACKAGE := $(shell grep '^PACKAGE =' setup.py | cut -d "'" -f2)
VERSION := $(shell head -n 1 $(PACKAGE)/VERSION)
all: list
install:
pip install --upgrade -e .[develop]
list:
@grep '^\.PHONY' Makefile | cut -d' ' -f2- | tr ' ' '\n'
release:
bash -c '[[ -z `git status -s` ]]'
git tag -a -m release $(VERSION)
git push --tags
test:
pylama $(PACKAGE)
py.test -vvv -s --cov dataflows --cov-report term-missing
version:
@echo $(VERSION)
notebooks:
rm -rf .checkpoints beatles.csv && jupyter nbconvert --execute *.ipynb --to markdown --inplace