forked from queengooborg/pyapplemusicapi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (28 loc) · 822 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
37
38
39
40
PACKAGE=itunes
.PHONY: all ci clean coverage docs-init docs init labels publish style test
all: test
ci: init style test
clean:
rm -rf $(PACKAGE)/*.pyc
rm -rf tests/__pycache__
rm -rf $(PACKAGE)/__pycache__
rm -rf $(PACKAGE).egg-info
coverage:
py.test --verbose --cov-report term-missing --cov=$(PACKAGE) -p no:cacheprovider tests
docs-init:
pip install -r docs/requirements.txt
docs:
cd docs && make html
@echo "\033[95m\n\nBuild successful! View the docs homepage at docs/_build/html/index.html.\n\033[0m"
init:
pip install -r testing-requirements.txt
labels:
ghlabels -remove -file .github/labels.json
publish:
python setup.py register
python setup.py sdist upload
rm -fr build dist .egg $(PACKAGE).egg-info
style:
flake8 $(PACKAGE)
test: clean
py.test -s --verbose -p no:cacheprovider tests